Skip to content

Commit

Permalink
Github Pages demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
vkruglikov committed Jan 2, 2025
1 parent bcd7653 commit ccac2c2
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy demo page to Github Pages

on:
push:
branches: ['master']
paths:
- 'packages/demo/**'

permissions:
contents: read
pages: write
id-token: write

jobs:
install-deps:
name: Install dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/install-npm-deps

- name: Build all packages
run: npm run build -- --filter=@msw-devtools/demo

- name: Setup Pages
uses: actions/configure-pages@v2

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

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit ccac2c2

Please sign in to comment.