Skip to content

Commit

Permalink
single stage doc CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aloneguid committed Nov 11, 2024
1 parent 93b6f24 commit 9a79c2a
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- run: |
echo head_ref: ${{ github.head_ref }}
echo run id: ${{ github.run_id }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
compression-level: 9
retention-days: 1

wrs-build:
wrs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
name: '📃 Build Documentation'
Expand All @@ -163,25 +163,27 @@ jobs:
instance: ${{ env.DOC_INSTANCE }}
artifact: ${{ env.DOC_INSTANCE }}
docker-version: ${{ env.DOC_DOCKER_VERSION }}
- name: Upload documentation
uses: actions/upload-artifact@v4
with:
name: docs
path: artifacts/*.zip
retention-days: 1

wrs-deploy:
runs-on: ubuntu-latest
needs:
- wrs-build
name: '📄 Deploy Documentation'
steps:
- name: ⬇️ Download artifacts
uses: actions/download-artifact@v4
with:
name: docs
# - name: Upload documentation
# uses: actions/upload-artifact@v4
# with:
# name: docs
# path: artifacts/*.zip
# retention-days: 1

# wrs-deploy:
# runs-on: ubuntu-latest
# needs:
# - wrs-build
# name: '📄 Deploy Documentation'
# steps:
# - name: ⬇️ Download artifacts
# uses: actions/download-artifact@v4
# with:
# name: docs

- name: 🤐 Unzip artifact
run: unzip -O UTF-8 -qq ${{ env.DOC_ARTIFACT }} -d dir
run: unzip -O UTF-8 -qq artifacts/${{ env.DOC_ARTIFACT }} -d dir
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact to GH Pages
Expand Down

0 comments on commit 9a79c2a

Please sign in to comment.