Skip to content

Commit b73012c

Browse files
hamishforshearn89
authored andcommitted
CI: Release to Spacelift
1 parent 6376586 commit b73012c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
id: import_gpg
3131
with:
3232
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
33+
34+
- name: Install spacectl
35+
uses: spacelift-io/setup-spacectl@main
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
3339
- name: Run GoReleaser
3440
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
3541
with:
@@ -40,3 +46,13 @@ jobs:
4046
# GitHub sets the GITHUB_TOKEN secret automatically.
4147
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4248
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
49+
50+
- name: Release new version to spacelift
51+
if: startsWith(github.ref, 'refs/tags/')
52+
env:
53+
GPG_KEY_ID: ${{ steps.import_gpg.outputs.keyid }}
54+
SPACELIFT_API_KEY_ENDPOINT: https://spacelift.ktl.net
55+
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }}
56+
SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_API_KEY_SECRET }}
57+
run:
58+
spacectl provider create-version --type=nexus

0 commit comments

Comments
 (0)