-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (35 loc) · 1.06 KB
/
website.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
name: Publish Website
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # by default it only checks out one commit... not what we want. 0 enables all
path: incredibles
- uses: actions/checkout@v2
with:
repository: mattbruv/incredibles-tracker
path: website
- uses: actions/setup-node@v1
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build Website
env:
OK_WEBHOOK: ${{ secrets.OK_WEBHOOK }}
run: |
cd website
python build.py
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to..
FOLDER: website/dist # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
SINGLE_COMMIT: true