diff options
| author | schererleander <leander@schererleander.de> | 2025-12-28 15:58:39 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-12-28 15:58:39 +0100 |
| commit | 5924dde85d0f1dde6ca8372b097562c317101880 (patch) | |
| tree | 528c275436c801a957579f9f9dbf7705302fa00b /.github | |
| parent | 06a0037188b717ac30e6a5cd65da434822cc5d2c (diff) | |
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/pygbag.yml | 40 |
1 files changed, 26 insertions, 14 deletions
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 |
