-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.3 KB
/
release-github.yaml
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: Create draft GitHub release
on:
push:
tags:
- v*
jobs:
build:
uses: qua-platform/qualibrate/.github/workflows/reusable-build.yaml@main
release:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: dist
pattern: python-package-*
merge-multiple: true
- name: Install poetry
run: pipx install poetry
- name: Create release notes
run: |
cat > notes.md <<- EOM
Individual release notes can be found in the respective packages.
Qualibrate App package version: $(poetry show qualibrate-app | awk '/version/ { print $3 }')
Qualibrate Runner package version: $(poetry show qualibrate-runner | awk '/version/ { print $3 }')
Qualibrate Core package version: $(poetry show qualibrate-core | awk '/version/ { print $3 }')
EOM
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release create ${{ github.ref_name }}
--notes-file notes.md
--verify-tag --latest
--draft
"dist/qualibrate-${GITHUB_REF_NAME#v}-py3-none-any.whl"
"dist/qualibrate-${GITHUB_REF_NAME#v}.tar.gz"