mirror of
https://github.com/botlabsDev/npkpy.git
synced 2026-01-27 22:57:16 +01:00
Update cicd.yml
This commit is contained in:
parent
c5133c857c
commit
ce4c24f997
1 changed files with 4 additions and 3 deletions
7
.github/workflows/cicd.yml
vendored
7
.github/workflows/cicd.yml
vendored
|
|
@ -1,5 +1,6 @@
|
|||
name: CI/CD
|
||||
on:
|
||||
release:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '0 2 * * *' # run at 2 AM UTC
|
||||
|
|
@ -37,8 +38,8 @@ jobs:
|
|||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: tests
|
||||
if: (github.event_name == 'push' || github.event_name =='release' )&& github.ref == 'refs/heads/master'
|
||||
|
||||
if: github.event_name == 'release' || github.event_name == 'push'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-python@v1
|
||||
|
|
@ -62,7 +63,7 @@ jobs:
|
|||
repository_url: https://test.pypi.org/legacy/
|
||||
|
||||
- name: Release npkPy to PyPI
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
if: github.event_name == 'release'
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
password: ${{ secrets.PYPI_PASSWORD }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue