Skip to content

Commit

Permalink
feat(github-actions): add permissions and token to deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
voidful committed Feb 15, 2024
1 parent 6961330 commit 8d63a34
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Build and Deploy

on:
push:
branches:
Expand All @@ -7,12 +8,18 @@ on:
- 'web/**'
workflow_dispatch:

permissions:
contents: write
deployments: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node.js environment
uses: actions/setup-node@v2
Expand Down Expand Up @@ -41,4 +48,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web/build
publish_dir: ./web/build

0 comments on commit 8d63a34

Please sign in to comment.