Skip to content

Commit

Permalink
Add a GitHub pages copy of the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
nickswalker committed Mar 11, 2024
1 parent de378c9 commit 55a481a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -18,3 +22,24 @@ 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
permissions:
id-token: write
pages: write
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

0 comments on commit 55a481a

Please sign in to comment.