Merge pull request #282 from nnsnodnb/renovate/cryptography-44.x #28
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: | |
- '*.*.*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install poetry | |
run: | | |
pip install -U pip pipx | |
pipx install poetry | |
poetry run pip install -U setuptools pip | |
poetry self add "poetry-dynamic-versioning[plugin]" | |
- name: Configure poetry | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'poetry' | |
- name: Build package | |
run: poetry build | |
- name: Upload distribution | |
uses: actions/upload-artifact@v4 | |
with: | |
name: kalyke-apns | |
path: dist/ | |
publish: | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
permissions: | |
id-token: write | |
steps: | |
- name: Retrieve release distributions | |
uses: actions/download-artifact@v4 | |
with: | |
name: kalyke-apns | |
path: dist/ | |
- name: Publish release distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |