-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 1.34 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
38
39
40
41
42
43
44
45
46
name: 'New Release'
run-name: 'Release ${{ inputs.version_number }}'
on:
workflow_dispatch:
inputs:
version_number:
description: 'Version number (e.g. v1.0.0, v1.0.0-pre, v1.0.0-pre1)'
required: true
jobs:
validate-inputs:
runs-on: ubuntu-latest
permissions: {}
steps:
- name: Validation of version format
run: echo "${{ inputs.version_number }}" | grep -P '^v\d+\.\d+\.\d+(-pre[A-Za-z0-9-]*)?$'
create-tag:
needs: validate-inputs
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- run: echo "WIP - Placeholder for create tag"
release:
needs: create-tag
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
with:
go-version-file: 'go.mod'
- name: Generate manifest files
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
VERSION: ${{ inputs.version_number }}
run: make generate-all-manifests
- name: Run GoReleaser
run: echo "WIP - Placeholder for release"