Skip to content

Commit

Permalink
Added workflow to release to test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
maerteijn committed Oct 9, 2023
1 parent e96ccf5 commit 6eed0b2
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish-testpypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish to pypi test
on: workflow_dispatch

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"
- name: Install wheel
run: pip install wheel
- name: Build a binary wheel
run: make wheel
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: update-netrc-wheels
path: dist/

publish-to-pypi-test:
name: Publish wheel to pypi test
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/update-netrc # Replace <package-name> with your PyPI project name
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download the wheels
uses: actions/download-artifact@v3
with:
name: update-netrc-wheels
path: dist/
- name: Publish wheel to pypi test
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 6eed0b2

Please sign in to comment.