Skip to content

Commit

Permalink
Add pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Jan 12, 2025
1 parent cf95e8d commit daaee40
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,25 @@ jobs:
options: -Oz
file: web/pkg/tex_fmt_bg.wasm
output: web/pkg/tex_fmt_bg.wasm
- name: Upload wasm
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
path: "web/pkg"
pages:
if: github.ref == 'refs/heads/main'
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: wasm
steps:
- uses: actions/checkout@v3
- name: Download WASM and JS artifacts
uses: actions/download-artifact@v3
- run: mkdir -p web/pkg && mv pkg/* web/pkg/ && rmdir pkg
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: web
nix:
name: Nix build
runs-on: ubuntu-latest
Expand Down

0 comments on commit daaee40

Please sign in to comment.