We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5133c8 commit ce4c24fCopy full SHA for ce4c24f
.github/workflows/cicd.yml
@@ -1,5 +1,6 @@
1
name: CI/CD
2
on:
3
+ release:
4
push:
5
schedule:
6
- cron: '0 2 * * *' # run at 2 AM UTC
@@ -37,8 +38,8 @@ jobs:
37
38
release:
39
runs-on: ubuntu-latest
40
needs: tests
- if: (github.event_name == 'push' || github.event_name =='release' )&& github.ref == 'refs/heads/master'
41
-
+ if: github.event_name == 'release' || github.event_name == 'push'
42
+
43
steps:
44
- uses: actions/checkout@v1
45
- uses: actions/setup-python@v1
@@ -62,7 +63,7 @@ jobs:
62
63
repository_url: https://test.pypi.org/legacy/
64
65
- name: Release npkPy to PyPI
- if: startsWith(github.event.ref, 'refs/tags')
66
+ if: github.event_name == 'release'
67
uses: pypa/gh-action-pypi-publish@master
68
with:
69
password: ${{ secrets.PYPI_PASSWORD }}
0 commit comments