Skip to content

Commit

Permalink
Update cicd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
botlabsDev authored Jun 25, 2020
1 parent c5133c8 commit ce4c24f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: CI/CD
on:
release:
push:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
Expand Down Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit ce4c24f

Please sign in to comment.