Skip to content

Commit ce4c24f

Browse files
authored
Update cicd.yml
1 parent c5133c8 commit ce4c24f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/cicd.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: CI/CD
22
on:
3+
release:
34
push:
45
schedule:
56
- cron: '0 2 * * *' # run at 2 AM UTC
@@ -37,8 +38,8 @@ jobs:
3738
release:
3839
runs-on: ubuntu-latest
3940
needs: tests
40-
if: (github.event_name == 'push' || github.event_name =='release' )&& github.ref == 'refs/heads/master'
41-
41+
if: github.event_name == 'release' || github.event_name == 'push'
42+
4243
steps:
4344
- uses: actions/checkout@v1
4445
- uses: actions/setup-python@v1
@@ -62,7 +63,7 @@ jobs:
6263
repository_url: https://test.pypi.org/legacy/
6364

6465
- name: Release npkPy to PyPI
65-
if: startsWith(github.event.ref, 'refs/tags')
66+
if: github.event_name == 'release'
6667
uses: pypa/gh-action-pypi-publish@master
6768
with:
6869
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)