Skip to content

Commit

Permalink
Update publish_workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileDeBruyn authored Apr 17, 2024
1 parent c8c569e commit 9f208ed
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/publish_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
name: "Publishing"
name: "Packaging and test publishing"
on:
push:
branches:
- master

jobs:
publish-to-testpypi:
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

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
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v2

0 comments on commit 9f208ed

Please sign in to comment.