Skip to content

python version as string #1

python version as string

python version as string #1

Workflow file for this run

name: Publish Python Package
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
publish_pypi:
name: Publish to PyPi
runs-on: ubuntu-20.04
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
environment:
name: pypi
url: https://pypi.org/p/multi_mst
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install -U pyyaml
- name: Download sdist
uses: dawidd6/[email protected]
with:
github_token: ${{ secrets.PUSH_TOKEN }}
workflow: Tests.yml
workflow_conclusion: success
branch: main
path: .
- name: Move files to dist
run: |
mkdir dist
mv sdist/* dist/
- name: Publish package to (Test)PyPI
uses: pypa/[email protected]
# Comment lines below to publish to PyPi instead of test PyPi
# with:
# repository-url: https://test.pypi.org/legacy/