Skip to content

Commit

Permalink
updated workflow permissions and token
Browse files Browse the repository at this point in the history
  • Loading branch information
benev0 committed Sep 6, 2024
1 parent cdb1451 commit ee4de62
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,28 @@ on:
branches:
- main

permissions:
contents: write

jobs:
build:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: checkout src
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- name: build angular
working-directory: .
run: npm install && npm run build:prod

- name: publish site
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/browser
branch: live
token: ${{ secrets.PUBLISH_TOKEN }}
token: ${{ GITHUB_TOKEN }}

0 comments on commit ee4de62

Please sign in to comment.