-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (41 loc) · 1.09 KB
/
release_python.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
44
45
46
47
name: Build and publish Python
on:
workflow_dispatch:
inputs:
python_version:
required: true
type: string
workflow_call:
inputs:
python_version:
required: true
type: string
jobs:
build:
name: Build ${{ inputs.python_version }}
uses: ./.github/workflows/build_python.yml
with:
python_version: ${{ inputs.python_version }}
publish:
name: Publish ${{ inputs.python_version }}
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: python
path: /tmp/python/
- name: Pick tag
run: |
echo "SELECTED_TAG=$(./scripts/pick_semver.sh ${{ inputs.python_version }})" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
with:
files: /tmp/python/python*.tar.gz
tag_name: ${{ env.SELECTED_TAG }}
body: "Python ${{ inputs.python_version }}"