Skip to content

Commit

Permalink
Update gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
axxel committed Jul 5, 2023
1 parent 65c5224 commit ec7187c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy WASM Demo to Pages
name: gh-pages

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -29,9 +29,10 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mymindstorm/setup-emsdk@v12

- name: Checkout
uses: actions/checkout@v3
- name: Setup EMSDK
uses: mymindstorm/setup-emsdk@v12
- name: Setup Pages
uses: actions/configure-pages@v3

Expand All @@ -41,21 +42,20 @@ jobs:
- name: Build
run: cmake --build build -j4

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# path: '.'

- uses: actions/upload-artifact@v3
with:
name: wasm-artifacts
path: |
build/zxing*
build/demo*
# - uses: actions/upload-artifact@v3
# with:
# name: wasm-artifacts
# path: |
# build/zxing*
# build/demo*

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
with:
artifact_name: wasm-artifacts

0 comments on commit ec7187c

Please sign in to comment.