-
Notifications
You must be signed in to change notification settings - Fork 19
43 lines (39 loc) · 997 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
43
name: Publish release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
jobs:
github:
name: github
runs-on: ubuntu-latest
steps:
- name: Checkout tag
uses: actions/checkout@v3
with:
ref: ${{ github.ref_name }}
- name: Publish release
uses: eloquent/github-release-action@v3
if: github.ref_type == 'tag'
with:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: "true"
pypi:
name: pypi
runs-on: ubuntu-latest
needs: github
steps:
- name: Checkout tag
uses: actions/checkout@v3
with:
ref: ${{ github.ref_name }}
- name: Install flit
run: |
python -m pip install --upgrade pip
pip install flit
- name: Publish release
env:
FLIT_INDEX_URL: https://upload.pypi.org/legacy/
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: flit publish