File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 30
30
id : import_gpg
31
31
with :
32
32
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
+
33
39
- name : Run GoReleaser
34
40
uses : goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
35
41
with :
40
46
# GitHub sets the GITHUB_TOKEN secret automatically.
41
47
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
48
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
You can’t perform that action at this time.
0 commit comments