Skip to content

Commit

Permalink
Actions run on schedule, fix publish
Browse files Browse the repository at this point in the history
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Jun 22, 2020
1 parent 9d5bef0 commit c602e4c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: check
on:
push:
pull_request:
schedule:
- cron: '0 8 * * *'

jobs:
lint:
Expand Down Expand Up @@ -127,3 +129,23 @@ jobs:
run: python -m tox -e ${{ matrix.tox_env }}
env:
UPGRADE_ADVISORY: 'yes'

publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [check, test, lint]
runs-on: ubuntu-latest
steps:
- name: setup python to build package
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: install pep517
run: python -m pip install pep517
- name: build package
run: python -m pep517.build -s -b . -o dist
- name: publish to PyPi
uses: pypa/gh-action-pypi-publish@master
with:
skip_existing: true
user: __token__
password: ${{ secrets.pypi_password }}
17 changes: 0 additions & 17 deletions .github/workflows/publish.yaml

This file was deleted.

0 comments on commit c602e4c

Please # to comment.