Skip to content

Commit

Permalink
Add support for PR Previews (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton authored Sep 26, 2024
1 parent 874eb0c commit 2f60b56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Deploy spec

on: [push]

on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -14,7 +13,6 @@ jobs:
- run: npm install
- run: npm run build
- name: Publish HTML to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./build
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
permissions: write-all
if: ${{ github.event.number }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 2f60b56

Please sign in to comment.