-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.02 KB
/
deploy-web.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
name: Build and deploy web to GitHub Pages
on:
push:
branches:
- master
- main
schedule:
- cron: '0 0 1 * *' # on first day of every month
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
env:
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Cache dependencies
uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- name: Install dependencies
run: make install
- name: Generate web
run: python3 projectIndexer.py generate --fetch-directly --compile-tailwind --hide-private --verbose --github-token ${{ secrets.MY_GITHUB_TOKEN }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build