Skip to content

Commit

Permalink
build before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology committed Apr 15, 2024
1 parent 61c3a74 commit 88c42c1
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,30 @@ on:
- created

jobs:
pypi-publish:
name: upload release to PyPI
release:
name: release
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here
- name: Checkout commit and fetch tag history
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Install release dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish package distributions to PyPI
- name: Upload release to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 88c42c1

Please sign in to comment.