-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (36 loc) · 890 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Publish release
on:
workflow_dispatch:
jobs:
ci-tests:
uses: ./.github/workflows/ci-tests.yml
release-github:
name: Create Github release
needs: ci-tests
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v2
with:
name: packages
path: dist
- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
omitBody: true
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
draft: false
release-pypi:
name: Create PyPI release
needs: ci-tests
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: packages
path: dist
- uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}