-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.23 KB
/
deploy.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: Deploy
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
uses: ./build.yml
with:
branch: ${{ github.event.head_commit.message }}
inject_public_path: https://${{ github.repository_owner }}.github.io/${{ github.repository_name }}
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Download build results
uses: actions/download-artifact@v2
with:
name: build
path: ./out
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
publish_branch: gh-pages
force_orphan: true
enable_jekyll: false
clean: true
commit_message: ${{ github.event.head_commit.message }}
commit_user_name: ${{ github.event.head_commit.author.name }}
commit_user_email: ${{ github.event.head_commit.author.email }}