Skip to content

Commit

Permalink
Only build from master & testpypi
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Dec 8, 2023
1 parent 6acff25 commit 280c20c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pydna_pypi_build_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build for PyPI from master branch
name: Build for PyPI
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
if: github.event_name == 'release' && contains(github.ref, '/master')
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pydna_test_pypi_build_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build for TESTPyPI from testpypi branch
name: Build for TESTPyPI
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/testpypi'
if: github.event_name == 'release' && contains(github.ref, '/testpypi')
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
Expand Down

0 comments on commit 280c20c

Please sign in to comment.