-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.41 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
47
48
49
50
51
52
on:
push:
branches:
- main
paths:
- "pkg/**/*"
- "scripts/**/*"
- "main.go"
- "go.mod"
jobs:
validate:
name: Validate
uses: ./.github/workflows/validate.yml
release:
name: Release
needs: validate
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release vmatch
uses: anttiharju/actions/release@v0
- name: Get metadata
id: get-metadata
uses: anttiharju/actions/get-go-metadata@v0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: false # Suppress warning about a 'missing' go.sum
outputs:
description: ${{ steps.get-metadata.outputs.description }}
homepage: ${{ steps.get-metadata.outputs.homepage }}
url: ${{ steps.get-metadata.outputs.url }}
go_version: ${{ steps.get-metadata.outputs.go_version }}
version: ${{ steps.get-metadata.outputs.version }}
distribute:
name: Distribute
needs: release
uses: ./.github/workflows/distribute.yml
permissions:
contents: write
with:
description: ${{ needs.release.outputs.description }}
homepage: ${{ needs.release.outputs.homepage }}
url: ${{ needs.release.outputs.url }}
go-version: ${{ needs.release.outputs.go_version }}
version: ${{ needs.release.outputs.version }}
secrets: inherit