Release v1.1.0 #4
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: | |
push: | |
tags: | |
- v* | |
concurrency: | |
group: release | |
env: | |
PYTHONUNBUFFERED: "1" | |
FORCE_COLOR: "1" | |
jobs: | |
publish-pypi: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install Hatch | |
run: pip install --upgrade hatch | |
- name: Build package | |
run: hatch build | |
- name: Push Python artifacts to PyPI | |
uses: pypa/[email protected] | |
with: | |
skip-existing: true | |
publish-docs: | |
needs: publish-pypi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install Hatch | |
run: pip install --upgrade hatch | |
- name: Get version from tag | |
id: get-version | |
uses: battila7/get-version-action@v2 | |
- name: Deploy documentation | |
run: | | |
git fetch origin gh-pages --depth=1 | |
git config user.name github-actions | |
git config user.email [email protected] | |
hatch run docs:deploy ${{ steps.get-version.outputs.version-without-v }} | |
git push origin gh-pages | |
publish-github: | |
needs: publish-docs | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get version from tag | |
id: get-version | |
uses: battila7/get-version-action@v2 | |
- name: Get changelog release info | |
id: changelog | |
uses: release-flow/keep-a-changelog-action@v2 | |
with: | |
command: query | |
version: ${{ steps.get-version.outputs.version-without-v }} | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: EOLib ${{ steps.get-version.outputs.version }} | |
body: ${{ steps.changelog.outputs.release-notes }} |