From 963d987237bfc6e8b4dd8ff93596d0fed4192a97 Mon Sep 17 00:00:00 2001 From: Bernd Storath <999999bst@gmail.com> Date: Tue, 10 Sep 2024 15:30:03 +0200 Subject: [PATCH] build doc workflow --- .github/workflows/deploy-nightly.yml | 17 ++++++++++++++++- .github/workflows/deploy.yml | 19 ++++++++++++++++--- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-nightly.yml b/.github/workflows/deploy-nightly.yml index 5141221f..88404be3 100644 --- a/.github/workflows/deploy-nightly.yml +++ b/.github/workflows/deploy-nightly.yml @@ -12,7 +12,7 @@ jobs: if: github.repository_owner == 'wg-easy' permissions: packages: write - contents: read + contents: write steps: - uses: actions/checkout@v4 with: @@ -40,3 +40,18 @@ jobs: tags: ghcr.io/wg-easy/wg-easy:nightly cache-from: type=gha cache-to: type=gha,mode=min + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: 3.11.9 + - name: Install Dependencies + run: | + pip install mkdocs-material + pip install pillow cairosvg mike + - name: Setup Docs Deploy + run: | + git config --global user.name 'Docs Deploy Bot' + git config --global user.email 'docs.deploy@users.noreply.github.com' + - name: Build Docs Website + run: mike deploy --push nightly diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9da38edd..aea89c16 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,11 +15,9 @@ jobs: startsWith(github.ref, 'refs/tags/v') permissions: packages: write - contents: read + contents: write steps: - uses: actions/checkout@v4 - with: - ref: production - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -55,3 +53,18 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=min + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: 3.11.9 + - name: Install Dependencies + run: | + pip install mkdocs-material + pip install pillow cairosvg mike + - name: Setup Docs Deploy + run: | + git config --global user.name 'Docs Deploy Bot' + git config --global user.email 'docs.deploy@users.noreply.github.com' + - name: Build Docs Website + run: mike deploy --push --update-aliases ${{ github.ref_name }} latest