Skip to content

fix tags

fix tags #18

Workflow file for this run

# This workflow will upload a Python Package
# using Twine when a release is created
name: publish
on:
push:
tags: ['*']
release:
types: [created]
jobs:
pypi-publish:
runs-on: ubuntu-latest
# for pypi publish
environment:
name: pypi
url: https://pypi.org/p/pydependence
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: install build deps
run: |
python3 -m pip install --upgrade pip
python3 -m pip install build
python3 -m build
# publish files in ./dist folder
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_TOKEN }}