From 5924dde85d0f1dde6ca8372b097562c317101880 Mon Sep 17 00:00:00 2001 From: schererleander Date: Sun, 28 Dec 2025 15:58:39 +0100 Subject: feat(action): Deploy pygbag build via GH Pages actions --- .github/workflows/pygbag.yml | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) (limited to '.github/workflows/pygbag.yml') diff --git a/.github/workflows/pygbag.yml b/.github/workflows/pygbag.yml index 3f6f9c8..16cc3cb 100644 --- a/.github/workflows/pygbag.yml +++ b/.github/workflows/pygbag.yml @@ -1,21 +1,33 @@ - name: pygbag_build +permissions: + contents: read + pages: write + id-token: write on: [workflow_dispatch] - jobs: - build-pygbag: - name: Build for Emscripten pygbag runtime + build: + name: Build pygbag runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install and Build + run: | + python -m pip install pygbag + python -m pygbag --build $GITHUB_WORKSPACE/main.py + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: build/web + deploy: + name: Deploy to GitHub Pages + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build steps: - - uses: actions/checkout@v2 - - name: Checkout - run: | - python -m pip install pygbag - python -m pygbag --build $GITHUB_WORKSPACE/main.py - - name : "Upload to GitHub pages branch gh-pages" - uses: JamesIves/github-pages-deploy-action@4.1.7 - with: - branch: gh-pages - folder: build/web + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 -- cgit v1.3.1