Skip to content

Commit 92cac4d

Browse files
authored
chore(xfer): update release workflow (#437)
Post-transfer update of release workflow. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
1 parent 26a194a commit 92cac4d

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
1-
# SPDX-License-Identifier: MPL-2.0
1+
---
2+
# This workflow releases a new version of the plugin.
3+
4+
name: Release
25

3-
# This GitHub action can publish assets for release when a tag is created.
4-
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
5-
#
6-
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
7-
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `GPG_PASSPHRASE`
8-
# secret. If you would rather own your own GPG handling, please fork this action
9-
# or use an alternative one for key handling.
10-
#
11-
# You will need to pass the `--batch` flag to `gpg` in your signing step
12-
# in `goreleaser` to indicate this is being used in a non-interactive mode.
13-
#
14-
name: release
156
on:
167
push:
178
tags:
189
- 'v*'
10+
1911
permissions:
2012
contents: write
2113
packages: read
14+
2215
jobs:
2316
get-go-version:
2417
runs-on: ubuntu-latest
2518
outputs:
2619
go-version: ${{ steps.get-go-version.outputs.go-version }}
2720
steps:
28-
- name: Checkout
21+
- name: Checkout Repository
2922
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3023
- name: Get Go Version
3124
id: get-go-version
@@ -37,18 +30,18 @@ jobs:
3730
- get-go-version
3831
runs-on: ubuntu-latest
3932
steps:
40-
- name: Checkout
33+
- name: Checkout Repository
4134
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4235
- name: Unshallow
4336
run: git fetch --prune --unshallow
4437
- name: Setup Go
4538
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
4639
with:
4740
go-version: ${{ needs.get-go-version.outputs.go-version }}
48-
- name: Describe plugin
41+
- name: Describe Plugin
4942
id: plugin_describe
5043
run: echo "api_version=$(go run . describe | jq -r '.api_version')" >> "$GITHUB_OUTPUT"
51-
- name: Import GPG key
44+
- name: Import GPG Key
5245
id: import_gpg
5346
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
5447
with:
@@ -65,4 +58,4 @@ jobs:
6558
env:
6659
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
6760
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68-
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}
61+
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}

0 commit comments

Comments
 (0)