Skip to content

Commit

Permalink
split build workflows for pypi and testpypi
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Nov 23, 2023
1 parent bffbc27 commit 9b3f3ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/pydna_pypi_build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
types: [published]
branches:
- master
- dev_bjorn
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,7 +12,5 @@ jobs:
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.TEST_PYPI_TOKEN }}
repository_name: "testpypi"
repository_url: "https://test.pypi.org/legacy/"
pypi_token: ${{ secrets.PYPI_TOKEN }}
plugins: "poetry-dynamic-versioning[plugin]"
18 changes: 18 additions & 0 deletions .github/workflows/pydna_test_pypi_build_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build for PyPI
on:
release:
types: [published]
branches:
- dev_bjorn
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.TEST_PYPI_TOKEN }}
repository_name: "testpypi"
repository_url: "https://test.pypi.org/legacy/"
plugins: "poetry-dynamic-versioning[plugin]"

0 comments on commit 9b3f3ef

Please sign in to comment.