-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (35 loc) · 1.02 KB
/
release.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
name: release
run-name: Prepare ${{ inputs.version }} for release
on:
workflow_dispatch:
inputs:
version:
description: 'Version (eg. v1.2.3)'
type: string
required: true
jobs:
version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
# It's easier to work with the version when we've stripped the leading
# "v" off of it.
- id: version
run: |
echo "${{ inputs.version }}" | sed -E "s/^v?/version=/" >> $GITHUB_OUTPUT
build-linux:
uses: ./.github/workflows/release-build.yml
needs: version
with:
version: ${{ needs.version.outputs.version }}
verify-deb-ubuntu:
uses: ./.github/workflows/release-verify-deb-ubuntu.yml
needs: [version, build-linux]
with:
version: ${{ needs.version.outputs.version }}
verify-rpm-rhel:
uses: ./.github/workflows/release-verify-rpm-rhel.yml
needs: [version, build-linux]
with:
version: ${{ needs.version.outputs.version }}