-
Notifications
You must be signed in to change notification settings - Fork 22
43 lines (41 loc) · 1 KB
/
docs.yaml
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
name: GitHub pages
on:
schedule:
- cron: '0 * * * *'
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false
token: ${{ secrets.GH_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install
run: npm i
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./site
cname: drops.warframestat.us
force_orphan: false
user_name: 'Jimmy Bot'
user_email: '[email protected]'
- name: Pushback
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
chmod +x .github/pushback.sh
./.github/pushback.sh