0.8.0 #7
Workflow file for this run
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: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements_pypi.txt | |
- name: Build dist | |
run: | | |
make clean | |
make build | |
- name: Save build output | |
uses: actions/[email protected] | |
with: | |
name: built-output | |
path: ./dist | |
generate_changelog: | |
runs-on: ubuntu-latest | |
name: Generate changelog for default branch | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: master | |
- name: Generate changelog | |
uses: charmixer/auto-changelog-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release_branch: master | |
base: HISTORY.md | |
since_tag: "0.7.0" | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
with: | |
base: master | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Update changelog | |
title: Update changelog | |
body: Update the changelog. This PR is created automatically after a new release. | |
branch: update-changelog | |
publish: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Load saved build output | |
uses: actions/[email protected] | |
with: | |
name: built-output | |
path: ./dist | |
- name: Publish package | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN }} |