-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (38 loc) · 875 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
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
uses: ./.github/workflows/build.yml
create_release:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download wheels
uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: ./CHANGELOG.md
files:
- "dist/*"
upload_pypi:
needs: [build, create_release]
runs-on: ubuntu-latest
steps:
- name: Download wheels
uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}