Skip to content

Commit

Permalink
CI: Automatically publish progress website
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Jul 18, 2024
1 parent 836ed16 commit c6b8172
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,34 @@ jobs:
with:
name: ${{ matrix.version }}-report-${{ github.sha }}
path: report.json

website:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout website code
uses: actions/checkout@v4
with:
repository: LagoLunatic/tww-decomp-website
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: GZLE01-report-${{ github.sha }}
path: ./artifacts
- name: Rename artifact
run: |
mv ./artifacts/report.json ./artifacts/progress.json
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.x.x"
- name: Build Website
run: |
python build.py
- name: Deploy Website
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist # The folder the action should deploy.
clean: true
single-commit: true

0 comments on commit c6b8172

Please sign in to comment.