-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (29 loc) · 944 Bytes
/
Copy pathcreate-release.yml
File metadata and controls
34 lines (29 loc) · 944 Bytes
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
name: create-release
on:
push:
tags:
- "v*"
jobs:
coverage:
runs-on: ubuntu-latest
if: github.repository == 'NHSDigital/terraform-aws-mesh-client' && !contains(github.event.head_commit.message, 'tag release version:')
steps:
- name: checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: common build setup
uses: ./.github/actions/build-common
- name: get tag
run: |
VERSION="${GITHUB_REF#refs/*/}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: create release
id: create_release
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
continue-on-error: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}