-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.13 KB
/
deployment.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
47
48
49
50
51
name: Deployment to GitHub Pages
permissions:
contents: write
on:
# call this workflow when the workflow Main Validation is completed after a push to main
workflow_run:
workflows:
- 'Lint Code Base'
- 'Typecheck'
branches:
- main
types:
- completed
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
concurrency: nameyourpc-deployment
steps:
- name: Begin CI...
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: true
- name: Install dependencies
run: pnpm install
- name: Build page
run: npm run build
env:
VITE_APP_BASE_URL: /nameyourpc/
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist