Skip to content

Commit 631d0d1

Browse files
authored
Merge pull request #27 from test-unit/trusted-publisher
Add an action for release
2 parents f07f567 + 9fae594 commit 631d0d1

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
jobs:
7+
push:
8+
name: Push gem to RubyGems.org
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
13+
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
14+
15+
environment: release
16+
17+
steps:
18+
# Set up
19+
- uses: actions/[email protected]
20+
- name: Set up Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
bundler-cache: true
24+
ruby-version: ruby
25+
26+
# Release
27+
- uses: rubygems/[email protected]

lib/test/unit/runner/junitxml/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Test
22
module Unit
33
module Runner
44
module Junitxml
5-
VERSION = "1.0.0"
5+
VERSION = "1.0.1"
66
end
77
end
88
end

0 commit comments

Comments
 (0)