-
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 1.03 KB
/
gh-pages.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
name: build and deploy artifact to gh-pages branch
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "20"
cache: "yarn"
- run: yarn install
- run: yarn run test
- run: yarn run generate
- name: create .well-known folder
run: mkdir -p ./dist/.well-known
- run: echo '${{ secrets.BRAVE_REWARDS_VERIFICATION }}' > ./dist/.well-known/brave-rewards-verification.txt
- run: echo '${{ secrets.GOOGLE_SITE_VERIFICATION_CONTENT }}' > './dist/${{ secrets.GOOGLE_SITE_VERIFICATION_FILE_NAME }}'
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: theshrine.pw
force_orphan: true
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"