Skip to content

add artifacts permissions fix #10

add artifacts permissions fix

add artifacts permissions fix #10

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy-frontend:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: install packages
run: pnpm install
- name: create build
run: pnpm run build
- name: Fix permissions
run: |
chmod -c -R +rX "build/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: upload build artifacts
uses: actions/upload-artifact@v4
with:
name: 'github-pages'
path: build/
- name: deploy to github pages
uses: actions/deploy-pages@v4