bump: version 2.4.2 → 2.4.3 #3
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*" | |
jobs: | |
release: | |
name: create release | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/pylandstats | |
permissions: | |
# IMPORTANT: this permission is mandatory for trusted publishing | |
id-token: write | |
# see https://github.com/softprops/action-gh-release/issues/236 | |
contents: write | |
strategy: | |
matrix: | |
python-versions: ["3.10"] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: generate change log | |
uses: heinrichreimer/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issues: true | |
issuesWoLabels: true | |
pullRequests: true | |
prWoLabels: true | |
unreleased: true | |
addSections: '{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}' | |
sinceTag: v0.1.0 | |
output: RELEASE-CHANGELOG.md | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build twine | |
- name: build wheels and source tarball | |
run: | | |
python -m build | |
twine check --strict dist/* | |
- name: show temporary files | |
run: ls -l | |
- name: create github release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body_path: ./RELEASE-CHANGELOG.md | |
files: dist/*.whl | |
draft: false | |
prerelease: false | |
- name: publish to pypi | |
uses: pypa/gh-action-pypi-publish@release/v1 |