-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 972 Bytes
/
master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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-pages-artifact@v3
with:
name: 'github-pages'
path: build/
- name: deploy to github pages
uses: actions/deploy-pages@v4