Skip to content

Commit c227b14

Browse files
authored
Merge pull request #417 from bastelfreak/rel300
Release 3.0.0
2 parents 1206da6 + e0f15b9 commit c227b14

File tree

3 files changed

+100
-18
lines changed

3 files changed

+100
-18
lines changed

.github/workflows/release.yml

Lines changed: 86 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,104 @@
1-
name: Release
1+
---
2+
name: Gem Release
23

34
on:
45
push:
56
tags:
67
- '*'
78

9+
permissions: {}
10+
811
jobs:
9-
release:
10-
runs-on: ubuntu-latest
12+
build-release:
13+
# Prevent releases from forked repositories
1114
if: github.repository_owner == 'voxpupuli'
15+
name: Build the gem
16+
runs-on: ubuntu-24.04
1217
steps:
1318
- uses: actions/checkout@v4
14-
- name: Install Ruby 3.4
19+
- name: Install Ruby
1520
uses: ruby/setup-ruby@v1
1621
with:
17-
ruby-version: '3.4'
18-
env:
19-
BUNDLE_WITHOUT: release
22+
ruby-version: 'ruby'
2023
- name: Build gem
21-
run: gem build --strict --verbose *.gemspec
22-
- name: Publish gem to rubygems.org
23-
run: gem push *.gem
24+
shell: bash
25+
run: gem build --verbose *.gemspec
26+
- name: Upload gem to GitHub cache
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: gem-artifact
30+
path: '*.gem'
31+
retention-days: 1
32+
compression-level: 0
33+
34+
create-github-release:
35+
needs: build-release
36+
name: Create GitHub release
37+
runs-on: ubuntu-24.04
38+
permissions:
39+
contents: write # clone repo and create release
40+
steps:
41+
- name: Download gem from GitHub cache
42+
uses: actions/download-artifact@v4
43+
with:
44+
name: gem-artifact
45+
- name: Create Release
46+
shell: bash
2447
env:
25-
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
26-
- name: Setup GitHub packages access
27-
run: |
28-
mkdir -p ~/.gem
29-
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
30-
chmod 0600 ~/.gem/credentials
48+
GH_TOKEN: ${{ github.token }}
49+
run: gh release create --repo ${{ github.repository }} ${{ github.ref_name }} --generate-notes *.gem
50+
51+
release-to-github:
52+
needs: build-release
53+
name: Release to GitHub
54+
runs-on: ubuntu-24.04
55+
permissions:
56+
packages: write # publish to rubygems.pkg.github.com
57+
steps:
58+
- name: Download gem from GitHub cache
59+
uses: actions/download-artifact@v4
60+
with:
61+
name: gem-artifact
3162
- name: Publish gem to GitHub packages
32-
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
63+
run: gem push --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
64+
env:
65+
GEM_HOST_API_KEY: ${{ secrets.GITHUB_TOKEN }}
66+
67+
release-to-rubygems:
68+
needs: build-release
69+
name: Release gem to rubygems.org
70+
runs-on: ubuntu-24.04
71+
environment: release # recommended by rubygems.org
72+
permissions:
73+
id-token: write # rubygems.org authentication
74+
steps:
75+
- name: Download gem from GitHub cache
76+
uses: actions/download-artifact@v4
77+
with:
78+
name: gem-artifact
79+
- uses: rubygems/configure-rubygems-credentials@v1.0.0
80+
- name: Publish gem to rubygems.org
81+
shell: bash
82+
run: gem push *.gem
83+
84+
release-verification:
85+
name: Check that all releases are done
86+
runs-on: ubuntu-24.04
87+
permissions:
88+
contents: read # minimal permissions that we have to grant
89+
needs:
90+
- create-github-release
91+
- release-to-github
92+
- release-to-rubygems
93+
steps:
94+
- name: Download gem from GitHub cache
95+
uses: actions/download-artifact@v4
96+
with:
97+
name: gem-artifact
98+
- name: Install Ruby
99+
uses: ruby/setup-ruby@v1
100+
with:
101+
ruby-version: 'ruby'
33102
- name: Wait for release to propagate
34103
shell: bash
35104
run: |

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [3.0.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/3.0.0) (2025-08-03)
6+
7+
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/2.24.0...3.0.0)
8+
9+
**Breaking changes:**
10+
11+
- Require Ruby 3.2 or newer [\#416](https://github.com/voxpupuli/beaker-hostgenerator/pull/416) ([bastelfreak](https://github.com/bastelfreak))
12+
- Drop legacy EL6 data [\#322](https://github.com/voxpupuli/beaker-hostgenerator/pull/322) ([bastelfreak](https://github.com/bastelfreak))
13+
14+
**Implemented enhancements:**
15+
16+
- Add Redhat 10 AARCH [\#415](https://github.com/voxpupuli/beaker-hostgenerator/pull/415) ([smahima27](https://github.com/smahima27))
17+
518
## [2.24.0](https://github.com/voxpupuli/beaker-hostgenerator/tree/2.24.0) (2025-05-24)
619

720
[Full Changelog](https://github.com/voxpupuli/beaker-hostgenerator/compare/2.23.0...2.24.0)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module BeakerHostGenerator
22
module Version
3-
STRING = '2.24.0'
3+
STRING = '3.0.0'
44
end
55
end

0 commit comments

Comments
 (0)