Skip to content

Merge pull request #6 from tedivm/dependabot/github_actions/actions/s… #25

Merge pull request #6 from tedivm/dependabot/github_actions/actions/s…

Merge pull request #6 from tedivm/dependabot/github_actions/actions/s… #25

Workflow file for this run

name: PyPI
on:
push:
branches:
- "**"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
env:
PUBLISH_TO_PYPI: true
jobs:
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Python Version from File
id: python_version
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
- uses: actions/setup-python@v5
with:
python-version: ${{ steps.python_version.outputs.version }}
- name: Install Dependencies
run: make install
- name: Build Wheel
run: make build
# This will only run on Tags
- name: Publish package
if: ${{ env.PUBLISH_TO_PYPI == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')}}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_PUBLISH_API_KEY }}