-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.03 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
# This workflow is used for creating draft release on GitHub. Firstly the
# build workflow (.github/workflows/reusable-build.yaml) is triggered for
# creation wheel and sdist package archives. Then the draft GitHub release is
# created with attached built python package archives.
name: Create draft GitHub release
on:
push:
tags:
- v*
jobs:
build:
uses: qua-platform/qualibrate-core/.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
merge-multiple: true
pattern: python-package-*
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release create ${{ github.ref_name }}
--generate-notes --verify-tag --latest
--draft
"dist/qualibrate_core-${GITHUB_REF_NAME#v}-py3-none-any.whl"
"dist/qualibrate_core-${GITHUB_REF_NAME#v}.tar.gz"