Skip to content

Commit 894b86e

Browse files
committed
Update release pipeline
Signed-off-by: Josef Karasek <karasek.jose@gmail.com>
1 parent 2802d4b commit 894b86e

3 files changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/pr-check.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ on:
44
pull_request:
55
workflow_dispatch:
66

7+
permissions:
8+
contents: read
9+
pull-requests: read
10+
checks: write
11+
security-events: write
12+
actions: read
13+
714
jobs:
815
pr-check:
916
uses: kedify/github-meta/.github/workflows/go-pr-check.yaml@main

.github/workflows/release.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ on:
44
push:
55
tags:
66
- "v*"
7-
workflow_dispatch:
8-
9-
permissions:
10-
contents: write
11-
id-token: write
127

138
jobs:
149
release:
1510
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
1614

1715
steps:
1816
- name: Checkout
@@ -29,7 +27,6 @@ jobs:
2927
uses: sigstore/cosign-installer@v3
3028

3129
- name: Run GoReleaser release
32-
if: github.event_name == 'push'
3330
uses: goreleaser/goreleaser-action@v7
3431
with:
3532
distribution: goreleaser
@@ -38,13 +35,3 @@ jobs:
3835
env:
3936
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4037
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
41-
42-
- name: Run GoReleaser snapshot
43-
if: github.event_name == 'workflow_dispatch'
44-
uses: goreleaser/goreleaser-action@v7
45-
with:
46-
distribution: goreleaser
47-
version: "~> v2"
48-
args: release --clean --snapshot
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

kedify_0.0.1_linux_amd64.tar.gz

-3.83 MB
Binary file not shown.

0 commit comments

Comments
 (0)