Skip to content

Commit b024f9c

Browse files
committed
Add action for trusted release
1 parent e5b4736 commit b024f9c

File tree

2 files changed

+42
-6
lines changed

2 files changed

+42
-6
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release gem
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
push:
13+
if: github.repository == 'svoop/minitest-substitute'
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: write
18+
id-token: write
19+
20+
environment: release
21+
22+
steps:
23+
- name: Harden runner
24+
uses: step-security/[email protected]
25+
with:
26+
egress-policy: audit
27+
- uses: actions/checkout@v4
28+
with:
29+
persist-credentials: false
30+
- name: Set up Ruby
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
bundler-cache: true
34+
ruby-version: ruby
35+
- uses: rubygems/release-gem@v1

CHANGELOG.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
## Main
22

3-
#### Changes
3+
### Changes
44
* Update Ruby to 3.4
5+
* Add action for trusted release
56

67
## 1.0.0
78

8-
#### Breaking Changes
9+
### Breaking Changes
910
* Switch from `with` to `substitute` because Rails 7 pollutes `Object` for
1011
everybody by introducing `Object#with`. 💣
1112

1213
## 0.3.0
1314

14-
#### Additions
15+
### Additions
1516
* Substition of constants
1617

1718
## 0.2.1
1819

19-
#### Changes
20+
### Changes
2021
* Defer evaluation of the substitution value block for specs
2122

2223
## 0.2.0
2324

24-
#### Additions
25+
### Additions
2526
* Refactor to support class variables as well
2627
* Use declared subject as default target for with helper
2728

2829
## 0.1.0
2930

30-
#### Initial Implementation
31+
### Initial Implementation
3132
* Require Ruby 3.0
3233
* Substitution of instance variables
3334
* Substitution of global variables

0 commit comments

Comments
 (0)