Skip to content

Commit efe34f4

Browse files
committed
build package for pre-releases
1 parent ccd6970 commit efe34f4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/tests_and_build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
name: "Unit tests and builds"
3-
on:
4-
push:
5-
branches: ['**']
6-
release:
7-
types: [released]
3+
on: push
84
env:
95
BASE_IMAGE_NAME: "${{ secrets.DOCKER_ORG }}/nansat_base:2.0.3-slim"
106
TESTING_IMAGE_NAME: metanorm_tests
@@ -82,7 +78,7 @@ jobs:
8278
run: pip install coveralls && coveralls --service=github
8379

8480
- name: 'Build Python package'
85-
if: github.event_name == 'release'
81+
if: startsWith(github.event.ref, 'refs/tags/')
8682
env:
8783
TAG_REF: ${{ github.ref }}
8884
run: >
@@ -93,7 +89,7 @@ jobs:
9389
python setup.py sdist bdist_wheel
9490
9591
- name: 'Deploy package to the Github release'
96-
if: github.event_name == 'release'
92+
if: startsWith(github.event.ref, 'refs/tags/')
9793
env:
9894
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9995
GITHUB_REPOSITORY: ${{ github.repository }}

0 commit comments

Comments
 (0)