ehsso 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a9235f7ecdf6b9066a295eb8eb224d8fcb2142d0390eaed34418da407af51a8
4
- data.tar.gz: 9f99c1695b586f640f8f86eabe4d942806ce92adf02c046ddcd8bee3fe13a426
3
+ metadata.gz: 78474617434e6d24addeef20df5cea2f193f858c233d80c06c9a5dcf43891536
4
+ data.tar.gz: 5b5a20eb87f5059234028faed9508f86fbadf4fb061e1ddf048b110041959b5e
5
5
  SHA512:
6
- metadata.gz: 2d1185962049a41f2f075fce58e348c1275fd2bdb1014ee9652ff4ba3a3764c63a602e37b4453d9a18e4186027449de5f098345eba15a4b0881921ccaf36543c
7
- data.tar.gz: 69cf5da8ef34bda66ac1cc03ebd39033d35881207131c89ec5c077e08debb154b28fedb77ff882fd58b8007b327c5127d8e48fb1a11691ab7a3beb0e0bc0195a
6
+ metadata.gz: 648fb5f32db29fe8f7694adc49b1ddc01307956eeabed1b7a86396b49828b5a82c4f161df027aea0265e2cf88199c8645e1d9f6cba6b2549e011ff1fa67944a3
7
+ data.tar.gz: df834d5550a94636da051dfce6ef88f89bf1abf4800c6803238358f7ff53fa33353f71a3acf59af8852c7a3ac4733a4556887d4ab8b1f312c8942aa292f8bd39
@@ -1,11 +1,16 @@
1
1
  name: 02 - Release
2
2
 
3
3
  on:
4
- workflow_dispatch:
4
+ push:
5
+ tags:
6
+ - 'v*'
5
7
 
6
8
  jobs:
7
9
  release:
8
10
  runs-on: ubuntu-latest
11
+ permissions:
12
+ id-token: write
13
+ contents: write
9
14
 
10
15
  steps:
11
16
  - name: Checkout current code
@@ -19,14 +24,8 @@ jobs:
19
24
  bundler-cache: true
20
25
  cache-version: 1
21
26
 
22
- - name: Release to RubyGems
23
- env:
24
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
- run: |
26
- git config --global user.email "thomas.steiner@ikey.ch"
27
- git config --global user.name "thomis"
28
- mkdir ~/.gem
29
- echo -e "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}" > ~/.gem/credentials
30
- chmod 600 ~/.gem/credentials
31
- bundle exec rake release
32
- rm ~/.gem/credentials
27
+ - name: Build gem
28
+ run: gem build *.gemspec
29
+
30
+ - name: Push to Rubygems
31
+ uses: rubygems/release-gem@v1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog of ehsso
2
2
 
3
+ ## 0.7.1 / 2025-11-09
4
+
5
+ * Enable Trusted Publishing
6
+
3
7
  ## 0.7.0 / 2025-10-22
4
8
 
5
9
  * Fix Rails 8.1 compatibility - make Rails engine loading conditional
data/README.md CHANGED
@@ -172,6 +172,12 @@ class ApplicationController < ActionController::Base
172
172
  end
173
173
  ```
174
174
 
175
+ ## Publishing
176
+
177
+ This project uses [Trusted Publishing](https://guides.rubygems.org/trusted-publishing/) to securely publish gems to RubyGems.org. Trusted Publishing eliminates the need for long-lived API tokens by using OpenID Connect (OIDC) to establish a trusted relationship between GitHub Actions and RubyGems.org.
178
+
179
+ With Trusted Publishing configured, gem releases are automatically published to RubyGems when the release workflow runs, providing a more secure and streamlined publishing process.
180
+
175
181
  ## Contributing
176
182
 
177
183
  Bug reports and pull requests are welcome on GitHub at https://github.com/thomis/ehsso.
data/lib/ehsso/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ehsso
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ehsso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Steiner