-
Notifications
You must be signed in to change notification settings - Fork 1.4k
38 lines (37 loc) · 1.03 KB
/
start-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
name: Release - Test, build and start publishing
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'
jobs:
test-and-build:
uses: ./.github/workflows/test-and-build.yaml
check-tag:
runs-on: ubuntu-latest
outputs:
isRc: ${{ steps.vars.outputs.isRc }}
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 #v4.1.2
- name: Set output
id: vars
run: |
case ${GITHUB_REF#refs/*/} in
*-rc.*)
echo 'isRc=true' >> $GITHUB_OUTPUT
;;
*)
echo 'isRc=false' >> $GITHUB_OUTPUT
;;
esac
publish-release-candidate:
name: Publish GitHub release candidate
uses: ./.github/workflows/publish-release.yaml
needs: [test-and-build, check-tag]
with:
isReleaseCandidate: ${{ needs.check-tag.outputs.isRc == 'true' }}
name: release candidate
secrets:
customToken: ${{ secrets.EKSCTLBOT_TOKEN }}
permissions:
contents: write
pull-requests: write