-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (37 loc) · 1.06 KB
/
calendar.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: Generate calendar
on: [push, pull_request]
env:
DEFAULT_BRANCH: refs/heads/main
jobs:
calendar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Info
run: |
echo ${{ github.ref }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: build
run: |
./build.sh --edit-link=https://github.com/$GITHUB_REPOSITORY
- name: multipages
uses: rkdarst/gh-pages-multibranch@main
if: ${{ github.event_name == 'push' }}
with:
directory: ./out/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out/
force_orphan: true