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 5fe3f60
Show file tree
Hide file tree
Showing 2 changed files with 37 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
1 change: 1 addition & 0 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@msw-devtools/demo",
"version": "0.1",
"author": "Valentin Kruglikov",
"license": "MIT",
"scripts": {
"dev": "NODE_ENV=development npx webpack serve",
Expand Down

0 comments on commit 5fe3f60

Please sign in to comment.