v0.3.7 #10
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 to PyPI | |
on: | |
release: | |
types: [published] # Trigger when a release is published | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v3 # Use the latest version of the checkout action | |
- name: Set up Python | |
uses: actions/setup-python@v4 # Use the latest version of setup-python | |
with: | |
python-version: '3.10' # Update to the latest stable version of Python | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade poetry | |
- name: Download Asherah binaries | |
run: | | |
asherah/scripts/download-libasherah.sh | |
- name: Package and publish with Poetry | |
run: | | |
poetry config pypi-token.pypi $PYPI_TOKEN | |
poetry publish --build | |
env: | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |