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: Publish package | |
on: | |
push: | |
branches: | |
- aki/release | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build-package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install build tools | |
run: | | |
pip install -U pip | |
pip install -U twine flit pipdeptree | |
pip list | |
pipdeptree | |
- name: Build & check package | |
run: | | |
flit build | |
twine check dist/* --strict | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: release-${{ github.sha }} | |
path: dist | |
include-hidden-files: true | |
# publish-package: | |
# runs-on: ubuntu-latest | |
# environment: | |
# name: pypi | |
# url: https://pypi.org/p/<your-pypi-project-name> | |
# permissions: | |
# id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
# steps: | |
# - name: Publish package distribution to TestPyPI | |
# uses: pypa/gh-action-pypi-publish@release/v1 | |
# with: | |
# repository-url: https://test.pypi.org/legacy/ |