Skip to content

Commit

Permalink
Merge pull request #46 from aliceinwire/pypi
Browse files Browse the repository at this point in the history
github/workflows/pypi-test: Publish new release on pypi
  • Loading branch information
aliceinwire authored Nov 13, 2024
2 parents f5545d2 + 219fd15 commit 695f678
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish package to PyPI

on:
release:
types: [published]

jobs:
pypi_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/pypi-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish package to test.pypi

on:
push:
tags:
- "v*.*.*.dev*"
- "v*.*.*.post*"
- "v*.*.*.rc*"
- "v*.*.*.a*"
- "v*.*.*.b*"

jobs:
pypi_test_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.TEST_PYPI_TOKEN }}
repository_name: "testpypi"
repository_url: "https://test.pypi.org/legacy/"

0 comments on commit 695f678

Please sign in to comment.