forked from jdswinbank/lsst_git_changelog
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.16 KB
/
generate.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: Generate changelog
on:
push:
branches:
- new_changelog
schedule:
- cron: '15 * * * *'
workflow_dispatch:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Create Changelog
run: |
mkdir -p source/weekly/
mkdir -p source/releases/
mkdir -p build/
python git_changelog.py -n 1
make html
env:
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: build/html
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}