-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (42 loc) · 1.38 KB
/
release.yml
File metadata and controls
44 lines (42 loc) · 1.38 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
name: GitHub Release
env:
go_version: "1.26.1"
on:
workflow_dispatch:
inputs:
release_type:
description:
"Enter type of release to perform (i.e. development, beta, release):"
required: true
jobs:
release:
name: Carry out a release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# Get the full history as this is required by goreleaser
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.go_version }}
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- uses: FranzDiebold/github-env-vars-action@v2
- name: Install CI/CD tools
run: pip install continuous-delivery-scripts>=2.7 && pip list
- name: Install goreleaser
uses: goreleaser/goreleaser-action@v7
with:
install-only: true
distribution: goreleaser
version: latest
- name: Install Syft
uses: anchore/sbom-action/download-syft@v0
- name: Tag and release
run: cd-tag-and-release -b ${CI_ACTION_REF_NAME} -t ${{ github.event.inputs.release_type }} -vv
env:
# Using a specific token because GITHUB_TOKEN is not available https://github.com/marketplace/actions/workflow-dispatch#token
GIT_TOKEN: ${{ secrets.ARM_SOFTWARE_TOKEN }}