-
Notifications
You must be signed in to change notification settings - Fork 19
44 lines (37 loc) · 1.13 KB
/
release.yml
File metadata and controls
44 lines (37 loc) · 1.13 KB
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
43
44
name: Releases
on:
push:
tags: [ '*' ]
jobs:
release:
name: Publish release
runs-on: ubuntu-latest
steps:
# see https://github.com/marketplace/actions/download-workflow-artifact
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build-wheel.yml
path: wheels
- name: List wheels
run: |
mkdir dist
mv wheels/**/*.whl dist
rm -rf wheels
ls dist
# see https://github.com/marketplace/actions/create-release
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*.whl"
token: ${{ secrets.GITHUB_TOKEN }}
# see https://github.com/marketplace/actions/pypi-publish
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
# For releasing to test.pypi.org
# password: ${{ secrets.PYPI_TEST_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/