Release v3.5.1 Alpha 2: Environment Variable Expansion in Settings.ini #33
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: Build and Publish Package | |
on: | |
release: | |
types: [published] | |
jobs: | |
Release-PyPI-Package: | |
runs-on: ubuntu-latest | |
permissions: | |
# this permission is mandatory for trusted publishing | |
id-token: write | |
steps: | |
- name: "Checkout Repository" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Upgrade Python Build Tools | |
run: pip install -U build twine | |
- name: Build distributions | |
run: python -m build | |
- name: Check distributions | |
run: twine check dist/* | |
- name: Publish distributions to TestPyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ | |
- name: Clean-Up Attestations | |
run: rm dist/*.attestation | |
- name: Publish distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |