From 82318eb0e71fbfde242dc37731cad57750d0e362 Mon Sep 17 00:00:00 2001 From: Nick Walker Date: Sun, 10 Mar 2024 22:20:07 -0700 Subject: [PATCH] Add a GitHub pages copy of the demo --- .github/workflows/workflow.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 96f58ff..baeef4d 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,9 +1,13 @@ name: Publish Package to npmjs on: + push: + branches: + - main release: types: [created] jobs: build: + if: ${{ github.event_name == 'release' }} runs-on: ubuntu-latest permissions: contents: read @@ -18,3 +22,21 @@ jobs: - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + deploy: + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload Artifact + uses: actions/upload-pages-artifact@v2 + with: + # upload entire directory + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 \ No newline at end of file