File tree Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Original file line number Diff line number Diff line change 8
8
paths :
9
9
- lib/version.rb
10
10
11
- permissions :
12
- contents : write
13
- packages : write
14
-
15
11
jobs :
16
12
release :
17
13
runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : write
16
+ packages : write
17
+ outputs :
18
+ artifact-id : ${{ steps.upload-artifact.outputs.artifact-id }}
18
19
19
20
steps :
20
21
- name : checkout
42
43
- name : build
43
44
run : echo "GEM_VERSION=$(gem build ${{ env.GEM_NAME }}.gemspec 2>&1 | grep Version | cut -d':' -f 2 | tr -d " \t\n\r")" >> $GITHUB_ENV
44
45
46
+ - name : upload artifact
47
+ uses : actions/upload-artifact@4.6.2
48
+ id : upload-artifact
49
+ with :
50
+ path : ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem
51
+
45
52
- name : publish to GitHub packages
46
53
run : |
47
54
export OWNER=$( echo ${{ github.repository }} | cut -d "/" -f 1 )
61
68
chmod 0600 ~/.gem/credentials
62
69
gem push ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem
63
70
rm ~/.gem/credentials
71
+
72
+ sign :
73
+ needs : release
74
+ permissions :
75
+ id-token : write
76
+ attestations : write
77
+ contents : read
78
+ uses : runwaylab/salsa/.github/workflows/sign-artifact.yml@main
79
+ with :
80
+ artifact-ids : ${{ needs.release.outputs.artifact-id }}
81
+ artifact-path : " ."
82
+
83
+ verify :
84
+ permissions : {}
85
+ needs : [release, sign]
86
+ uses : runwaylab/salsa/.github/workflows/verify.yml@main
87
+ with :
88
+ artifact-ids : ${{ needs.release.outputs.artifact-id }}
89
+ artifact-path : " ."
You can’t perform that action at this time.
0 commit comments