-
-
Notifications
You must be signed in to change notification settings - Fork 210
86 lines (77 loc) · 2.58 KB
/
Copy pathrelease.yaml
File metadata and controls
86 lines (77 loc) · 2.58 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This is the DEV workflow.
# Run this Action on creating a new tag matching "<version>-b<build>"
# e.g., 3.7-b1
name: Build support package
on:
push:
tags:
- "*-b*"
permissions:
contents: read
jobs:
config:
name: Build vars
runs-on: macOS-latest
outputs:
TAG: ${{ steps.build-vars.outputs.TAG }}
BUILD_NUMBER: ${{ steps.build-vars.outputs.BUILD_NUMBER }}
steps:
- name: Set Build Variables
id: build-vars
env:
TAG_NAME: ${{ github.ref }}
run: |
export TAG=$(basename $TAG_NAME)
export BUILD_NUMBER="${TAG#*-}"
echo "TAG=${TAG}" | tee -a ${GITHUB_OUTPUT}
echo "BUILD_NUMBER=${BUILD_NUMBER}" | tee -a ${GITHUB_OUTPUT}
ci:
name: CI
needs: [config]
uses: $/.github/workflows/ci.yaml
with:
build-number: ${{ needs.config.outputs.BUILD_NUMBER }}
make-release:
name: Make Release
runs-on: ubuntu-latest
needs: [config, ci]
permissions:
contents: write
steps:
- name: Get build artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: Python-*
path: dist
merge-multiple: true
- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ needs.ci.outputs.PYTHON_VER }}-${{ needs.config.outputs.BUILD_NUMBER }}
BUILD_NUMBER: ${{ needs.config.outputs.BUILD_NUMBER }}
PYTHON_VER: ${{ needs.ci.outputs.PYTHON_VER }}
PYTHON_VERSION: ${{ needs.ci.outputs.PYTHON_VERSION }}
BZIP2_VERSION: ${{ needs.ci.outputs.BZIP2_VERSION }}
LIBFFI_VERSION: ${{ needs.ci.outputs.LIBFFI_VERSION }}
MPDECIMAL_VERSION: ${{ needs.ci.outputs.MPDECIMAL_VERSION }}
OPENSSL_VERSION: ${{ needs.ci.outputs.OPENSSL_VERSION }}
XZ_VERSION: ${{ needs.ci.outputs.XZ_VERSION }}
ZSTD_VERSION: ${{ needs.ci.outputs.ZSTD_VERSION }}
run: |
cat > release-notes.md <<EOF
Build ${BUILD_NUMBER} of the BeeWare support package for Python ${PYTHON_VER}.
Includes:
* Python ${PYTHON_VERSION}
* BZip2 ${BZIP2_VERSION}
* libFFI ${LIBFFI_VERSION}
* mpdecimal ${MPDECIMAL_VERSION}
* OpenSSL ${OPENSSL_VERSION}
* XZ ${XZ_VERSION}
* Zstandard ${ZSTD_VERSION}
EOF
gh release create "${RELEASE_TAG}" \
--title "${RELEASE_TAG}" \
--draft \
--verify-tag \
--notes-file release-notes.md \
dist/*