From c6b8172dcb31b34fc643a863a123632b3d958e36 Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Wed, 17 Jul 2024 20:07:28 -0400 Subject: [PATCH] CI: Automatically publish progress website --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f0ea8623b..97dded68d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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