-
-
Notifications
You must be signed in to change notification settings - Fork 165
64 lines (57 loc) · 1.83 KB
/
release.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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*'
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 ]
steps:
- name: Get build artifacts
uses: actions/[email protected]
with:
pattern: Python-*
path: dist
merge-multiple: true
- name: Create Release
uses: ncipollo/[email protected]
with:
name: ${{ needs.ci.outputs.PYTHON_VER }}-${{ needs.config.outputs.BUILD_NUMBER }}
tag: ${{ needs.ci.outputs.PYTHON_VER }}-${{ needs.config.outputs.BUILD_NUMBER }}
draft: true
body: |
Build ${{ needs.config.outputs.BUILD_NUMBER }} of the BeeWare support package for Python ${{ needs.ci.outputs.PYTHON_VER }}.
Includes:
* Python ${{ needs.ci.outputs.PYTHON_VERSION }}
* BZip2 ${{ needs.ci.outputs.BZIP2_VERSION }}
* libFFI ${{ needs.ci.outputs.LIBFFI_VERSION }}
* OpenSSL ${{ needs.ci.outputs.OPENSSL_VERSION }}
* XZ ${{ needs.ci.outputs.XZ_VERSION }}
artifacts: "dist/*"