Skip to content

Commit

Permalink
Continuous Deployment (#7)
Browse files Browse the repository at this point in the history
* try to release on tag

* release syntax based on push tag

* less frequent CI runs

* dont trigger on release, only on tag
  • Loading branch information
mathematicalmichael authored Jul 26, 2020
1 parent bd991bc commit dcfb7f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
push:
branches: [ master ]
pull_request:
branches:
- '*'
branches: [master, develop]
#- '*'
schedule:
- cron: "0 0 */7 * *"
release:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ name: Publish
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
#release:
push:
tags:
- 'v*'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -45,8 +48,7 @@ jobs:
run: |
python setup.py sdist bdist_wheel
- name: Publish package
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
- name: Publish release ${{ github.ref }}
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down

0 comments on commit dcfb7f0

Please sign in to comment.