Skip to content

Commit 9a74292

Browse files
authored
Merge pull request #85 from runwaylab/release-updates
update release
2 parents 5d5cf9c + 6296f87 commit 9a74292

File tree

11 files changed

+33
-18
lines changed

11 files changed

+33
-18
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
gem_name: ${{ steps.build.outputs.gem_name }}
2222
gem_version: ${{ steps.build.outputs.gem_version }}
2323
gem_path: ${{ steps.build.outputs.gem_path }}
24+
artifact_dir: ${{ steps.build.outputs.artifact_dir }}
2425

2526
steps:
2627
- name: checkout
27-
uses: actions/checkout@v4
28+
uses: actions/checkout@4.2.2
2829
with:
2930
persist-credentials: false
3031

@@ -39,6 +40,7 @@ jobs:
3940
# gem_name: the name of the gem - ex: "my-cool-gem"
4041
# gem_version: the version of the gem - ex: "1.0.0"
4142
# gem_path: the path/filename of the gem - ex: "my-cool-gem-1.0.0.gem"
43+
# artifact_dir: the directory where the gem is stored - ex: "dist" (a directory)
4244
- name: build
4345
id: build
4446
run: script/build
@@ -47,7 +49,9 @@ jobs:
4749
uses: actions/[email protected]
4850
id: upload-artifact
4951
with:
50-
path: "${{ steps.build.outputs.gem_path }}"
52+
name: ${{ steps.build.outputs.artifact_dir }}
53+
path: ${{ steps.build.outputs.artifact_dir }}
54+
if-no-files-found: error
5155

5256
release:
5357
needs: build
@@ -62,19 +66,25 @@ jobs:
6266
with:
6367
persist-credentials: false
6468

65-
- uses: actions/download-artifact@4.3.0
69+
- uses: actions/download-artifact@5.0.0
6670
with:
71+
path: ${{ needs.build.outputs.artifact_dir }}
6772
artifact-ids: ${{ needs.build.outputs.artifact-id }}
6873

74+
- name: view artifact
75+
env:
76+
ARTIFACT_PATH: ${{ needs.build.outputs.artifact_dir }}
77+
run: tree -L 2 -a --dirsfirst -C -F -h -D "${ARTIFACT_PATH}"
78+
6979
- name: Publish to GitHub Packages
7080
env:
7181
OWNER: ${{ github.repository_owner }}
7282
GEM_NAME: ${{ needs.build.outputs.gem_name }}
7383
GEM_VERSION: ${{ needs.build.outputs.gem_version }}
7484
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75-
ARTIFACT_PATH: "artifact"
85+
ARTIFACT_PATH: ${{ needs.build.outputs.artifact_dir }}
7686
run: |
77-
GEM_HOST_API_KEY=${GITHUB_TOKEN} gem push --key github --host https://rubygems.pkg.github.com/${OWNER} $ARTIFACT_PATH/${GEM_NAME}-${GEM_VERSION}.gem
87+
GEM_HOST_API_KEY=${GITHUB_TOKEN} gem push --key github --host https://rubygems.pkg.github.com/${OWNER} ${ARTIFACT_PATH}/${GEM_NAME}-${GEM_VERSION}.gem
7888
7989
- uses: ruby/setup-ruby@2a7b30092b0caf9c046252510f9273b4875f3db9 # [email protected]
8090
with:
@@ -90,14 +100,14 @@ jobs:
90100
env:
91101
GEM_NAME: ${{ needs.build.outputs.gem_name }}
92102
GEM_VERSION: ${{ needs.build.outputs.gem_version }}
93-
ARTIFACT_PATH: "artifact"
103+
ARTIFACT_PATH: ${{ needs.build.outputs.artifact_dir }}
94104
run: bundle exec sigstore-cli sign ${ARTIFACT_PATH}/${GEM_NAME}-${GEM_VERSION}.gem --bundle ${GEM_NAME}-${GEM_VERSION}.sigstore.json
95105

96106
- name: Publish to RubyGems
97107
env:
98108
GEM_NAME: ${{ needs.build.outputs.gem_name }}
99109
GEM_VERSION: ${{ needs.build.outputs.gem_version }}
100-
ARTIFACT_PATH: "artifact"
110+
ARTIFACT_PATH: ${{ needs.build.outputs.artifact_dir }}
101111
run: gem push ${ARTIFACT_PATH}/${GEM_NAME}-${GEM_VERSION}.gem --attestation ${GEM_NAME}-${GEM_VERSION}.sigstore.json
102112

103113
- name: await gem
@@ -111,7 +121,7 @@ jobs:
111121
GEM_NAME: ${{ needs.build.outputs.gem_name }}
112122
GEM_VERSION: ${{ needs.build.outputs.gem_version }}
113123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114-
ARTIFACT_PATH: "artifact"
124+
ARTIFACT_PATH: ${{ needs.build.outputs.artifact_dir }}
115125
run: |
116126
gh release create "v${GEM_VERSION}" \
117127
"${ARTIFACT_PATH}/${GEM_NAME}-${GEM_VERSION}.gem" \
@@ -128,29 +138,31 @@ jobs:
128138
contents: read
129139

130140
steps:
131-
- uses: actions/download-artifact@4.3.0
141+
- uses: actions/download-artifact@5.0.0
132142
with:
143+
path: ${{ needs.build.outputs.artifact_dir }}
133144
artifact-ids: ${{ needs.build.outputs.artifact-id }}
134145

135146
- name: attest build provenance
136147
uses: actions/[email protected]
137148
with:
138-
subject-path: "artifact/${{ needs.build.outputs.gem_path }}"
149+
subject-path: "${{ needs.build.outputs.artifact_dir }}/${{ needs.build.outputs.gem_path }}"
139150

140151
verify:
141152
permissions: {}
142153
needs: [build, release, sign]
143154
runs-on: ubuntu-latest
144155

145156
steps:
146-
- uses: actions/download-artifact@4.3.0
157+
- uses: actions/download-artifact@5.0.0
147158
with:
159+
path: ${{ needs.build.outputs.artifact_dir }}
148160
artifact-ids: ${{ needs.build.outputs.artifact-id }}
149161

150162
- name: verify
151163
env:
152164
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153165
OWNER: ${{ github.repository_owner }}
154166
REPO: ${{ github.event.repository.name }}
155-
ARTIFACT_PATH: "artifact/${{ needs.build.outputs.gem_path }}"
167+
ARTIFACT_PATH: "${{ needs.build.outputs.artifact_dir }}/${{ needs.build.outputs.gem_path }}"
156168
run: gh attestation verify "$ARTIFACT_PATH" --repo ${OWNER}/${REPO} --signer-workflow ${OWNER}/${REPO}/.github/workflows/release.yml

Gemfile.lock

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
issue-db (1.3.1)
4+
issue-db (1.3.2)
55
faraday-retry (~> 2.2, >= 2.2.1)
66
jwt (>= 2.9.3, < 4.0)
77
octokit (>= 9.2, < 11.0)
@@ -97,7 +97,7 @@ GEM
9797
psych (>= 4.0.0)
9898
redacting-logger (1.5.0)
9999
logger (~> 1.6)
100-
regexp_parser (2.10.0)
100+
regexp_parser (2.11.0)
101101
reline (0.6.2)
102102
io-console (~> 0.5)
103103
rexml (3.4.1)
@@ -114,7 +114,7 @@ GEM
114114
diff-lcs (>= 1.2.0, < 2.0)
115115
rspec-support (~> 3.13.0)
116116
rspec-support (3.13.4)
117-
rubocop (1.79.0)
117+
rubocop (1.79.2)
118118
json (~> 2.3)
119119
language_server-protocol (~> 3.17.0.2)
120120
lint_roller (~> 1.1.0)
@@ -124,7 +124,6 @@ GEM
124124
regexp_parser (>= 2.9.3, < 3.0)
125125
rubocop-ast (>= 1.46.0, < 2.0)
126126
ruby-progressbar (~> 1.7)
127-
tsort (>= 0.2.0)
128127
unicode-display_width (>= 2.4.0, < 4.0)
129128
rubocop-ast (1.46.0)
130129
parser (>= 3.3.7.2)
@@ -170,7 +169,6 @@ GEM
170169
simplecov_json_formatter (0.1.4)
171170
stringio (3.1.7)
172171
thor (1.4.0)
173-
tsort (0.2.0)
174172
tzinfo (2.0.6)
175173
concurrent-ruby (~> 1.0)
176174
unicode-display_width (3.1.4)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[![acceptance](https://github.com/runwaylab/issue-db/actions/workflows/acceptance.yml/badge.svg)](https://github.com/runwaylab/issue-db/actions/workflows/acceptance.yml)
77
[![release](https://github.com/runwaylab/issue-db/actions/workflows/release.yml/badge.svg)](https://github.com/runwaylab/issue-db/actions/workflows/release.yml)
88
[![coverage](./docs/assets/coverage.svg)](./docs/assets/coverage.svg)
9+
![slsa-level3](docs/assets/slsa-level3.svg)
910

1011
A Ruby Gem to use GitHub Issues as a NoSQL JSON document db.
1112

docs/assets/slsa-level3.svg

Lines changed: 1 addition & 0 deletions
Loading

lib/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module IssueDB
44
module Version
5-
VERSION = "1.3.1"
5+
VERSION = "1.3.2"
66
end
77
end

script/build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ if [[ "$CI" == "true" ]]; then
1111
echo "gem_name=$GEM_NAME" >> $GITHUB_OUTPUT
1212
echo "gem_version=$GEM_VERSION" >> $GITHUB_OUTPUT
1313
echo "gem_path=$GEM_NAME-$GEM_VERSION.gem" >> $GITHUB_OUTPUT
14+
mkdir -p dist/
15+
mv $GEM_NAME-$GEM_VERSION.gem dist/
16+
echo "artifact_dir=dist" >> $GITHUB_OUTPUT
1417
fi
1518

1619
echo -e "📦 ${GREEN}successfully${OFF} built ${PURPLE}$GEM_NAME-$GEM_VERSION.gem${OFF}"
-57.5 KB
Binary file not shown.
58 KB
Binary file not shown.

vendor/cache/rubocop-1.79.0.gem

-699 KB
Binary file not shown.

vendor/cache/rubocop-1.79.2.gem

699 KB
Binary file not shown.

0 commit comments

Comments
 (0)