Skip to content

Commit

Permalink
Fix perms, use workflow filter, add manual trigger (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonty committed Dec 16, 2023
1 parent 6215541 commit d0fe571
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: Node.js CI
name: Build & Deploy

on: [push]
on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
permissions:
pages: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -13,9 +20,8 @@ jobs:
- run: yarn install --no-progress --frozen-lockfile
- run: yarn test
- run: yarn build
- name: Deploy to https://tyrasd.github.io/overpass-turbo/
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
- name: Deploy to https://${{ github.actor }}.github.io/${{ github.event.repository.name }}/
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: dist

0 comments on commit d0fe571

Please sign in to comment.