Skip to content

Commit

Permalink
Auto deploy to pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ringtailsoftware committed Dec 3, 2024
1 parent 96d37cc commit dbf3f02
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: CI

on: [push, pull_request]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
test:
strategy:
Expand All @@ -20,5 +26,16 @@ jobs:
- name: Build
run: zig build
working-directory: zig-wasm-audio-framebuffer
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v3
- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: "zig-wasm-audio-framebuffer/zig-out"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2


0 comments on commit dbf3f02

Please sign in to comment.