Skip to content

Publish Packages on Release #1

Publish Packages on Release

Publish Packages on Release #1

Workflow file for this run

# Create and Publish repository Packages
name: Publish Packages on Release
on:
release:
types: [ created ]
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: deployment
url: https://pypi.org/p/treescriptify
permissions:
contents: read
packages: write
id-token: write
name: Publish Release
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install build requirements
run: |
python -m pip install build setuptools twine --user
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Sign Distributions
uses: dk96-os/[email protected]
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
verify: true
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://pypi.org/p/treescriptify
print-hash: true
verbose: true