Generate changelog #15844
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |