-
Notifications
You must be signed in to change notification settings - Fork 32
56 lines (49 loc) · 1.24 KB
/
release-pre.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Release check
on:
pull_request:
branches:
- main
jobs:
build-publish:
name: "Check release docs"
timeout-minutes: 15
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'release-')
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
- name: Release version
shell: bash
id: release
run: |
echo "TAG=v${GITHUB_HEAD_REF:8}" >> "$GITHUB_ENV"
- name: Helm docs
uses: gabe565/setup-helm-docs-action@v1
with:
version: v1.11.3
- name: Generate
run: make docs
- name: Check
run: git diff --exit-code
build-publish-cli:
name: "Check cli tool"
timeout-minutes: 15
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'release-')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: '~> v2'
args: check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}