👷 setup Github actions

This commit is contained in:
Félix Voituret
2020-07-08 14:59:50 +02:00
parent 6e8f4701b2
commit afce3b95f1
4 changed files with 128 additions and 2 deletions

27
.github/workflows/pypi.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: pypi
on:
pull_request:
types:
- closed
branches:
- master
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
jobs:
deploy-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Package sdist
run: make build
- name: Deploy to pypi
run: make deploy
deploy-gpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Package sdist
run: make build-gpu
- name: Deploy to pypi
run: make deploy