Skip to content

Update publish_workflow.yml #4

Update publish_workflow.yml

Update publish_workflow.yml #4

name: "Packaging and test publishing"
on:
push:
branches:
- master
jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
publish-to-testpypi:
name: Publish Python distribution to TestPyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: TestPyPI
url: https://test.pypi.org/p/SPEADI
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1