From ec7187c393bb9481813f8691155e64a671412533 Mon Sep 17 00:00:00 2001 From: axxel Date: Wed, 5 Jul 2023 12:10:15 +0200 Subject: [PATCH] Update gh-pages.yml --- .github/workflows/gh-pages.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 456a1fabc8..b583cb294b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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 @@ -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 @@ -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