Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Sep 26, 2020
1 parent 5c7b1b4 commit 1eaa334
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Checks
name: Check and publish

on:
# push:
# branches: [ master ]
pull_request:
branches: [ master ]

release:
types: [created]

jobs:
checks:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,3 +61,29 @@ jobs:
make html
# make linkcheck (don't run yet)
working-directory: docs

deploy:

if: ${{ github.event_name == 'release' }}

needs: checks

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
31 changes: 0 additions & 31 deletions .github/workflows/python-publish.yml

This file was deleted.

0 comments on commit 1eaa334

Please sign in to comment.