Skip to content

Commit 74f09b2

Browse files
authored
Merge pull request #5 from voxpupuli/vox
Release 5.0.0
2 parents 3687cde + ed32cdc commit 74f09b2

File tree

14 files changed

+584
-222
lines changed

14 files changed

+584
-222
lines changed

.github/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
3+
4+
changelog:
5+
exclude:
6+
labels:
7+
- duplicate
8+
- invalid
9+
- modulesync
10+
- question
11+
- skip-changelog
12+
- wont-fix
13+
- wontfix
14+
- github_actions
15+
16+
categories:
17+
- title: Breaking Changes 🛠
18+
labels:
19+
- backwards-incompatible
20+
21+
- title: New Features 🎉
22+
labels:
23+
- enhancement
24+
25+
- title: Bug Fixes 🐛
26+
labels:
27+
- bug
28+
- bugfix
29+
30+
- title: Documentation Updates 📚
31+
labels:
32+
- documentation
33+
- docs
34+
35+
- title: Dependency Updates ⬆️
36+
labels:
37+
- dependencies
38+
39+
- title: Other Changes
40+
labels:
41+
- "*"

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read # minimal permissions that we have to grant
12+
1013
jobs:
1114
rubocop_and_matrix:
1215
env:

.github/workflows/nightly.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 98 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,102 @@
1-
name: "Release"
1+
---
2+
name: Gem Release
23

34
on:
4-
workflow_dispatch:
5-
inputs:
6-
target:
7-
description: "The target for the release. This can be a commit sha or a branch."
8-
required: false
9-
default: "main"
5+
push:
6+
tags:
7+
- '*'
108

119
jobs:
12-
release:
13-
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main"
14-
with:
15-
target: "${{ github.event.inputs.target }}"
16-
secrets: "inherit"
10+
build-release:
11+
# Prevent releases from forked repositories
12+
if: github.repository_owner == 'voxpupuli'
13+
name: Build the gem
14+
runs-on: ubuntu-24.04
15+
permissions:
16+
contents: write # clone repo and create release
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Install Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: 'ruby'
23+
- name: Build 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+
- name: Create Release Page
34+
shell: bash
35+
env:
36+
GH_TOKEN: ${{ github.token }}
37+
run: gh release create ${{ github.ref_name }} --generate-notes
38+
- name: Attach gem to GitHub Release
39+
shell: bash
40+
env:
41+
GH_TOKEN: ${{ github.token }}
42+
run: gh release upload ${{ github.ref_name }} *.gem
43+
44+
release-to-github:
45+
needs: build-release
46+
name: Release to GitHub
47+
runs-on: ubuntu-24.04
48+
permissions:
49+
packages: write # publish to rubygems.pkg.github.com
50+
steps:
51+
- name: Download gem from GitHub cache
52+
uses: actions/download-artifact@v4
53+
with:
54+
name: gem-artifact
55+
- name: Setup GitHub packages access
56+
run: |
57+
mkdir -p ~/.gem
58+
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
59+
chmod 0600 ~/.gem/credentials
60+
- name: Publish gem to GitHub packages
61+
run: gem push --key github --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
62+
63+
release-to-rubygems:
64+
needs: build-release
65+
name: Release gem to rubygems.org
66+
runs-on: ubuntu-24.04
67+
environment: release # recommended by rubygems.org
68+
permissions:
69+
id-token: write # rubygems.org authentication
70+
steps:
71+
- name: Download gem from GitHub cache
72+
uses: actions/download-artifact@v4
73+
with:
74+
name: gem-artifact
75+
- uses: rubygems/[email protected]
76+
- name: Publish gem to rubygems.org
77+
shell: bash
78+
run: gem push *.gem
79+
80+
release-verification:
81+
name: Check that all releases are done
82+
runs-on: ubuntu-24.04
83+
permissions:
84+
contents: read # minimal permissions that we have to grant
85+
needs:
86+
- release-to-github
87+
- release-to-rubygems
88+
steps:
89+
- name: Download gem from GitHub cache
90+
uses: actions/download-artifact@v4
91+
with:
92+
name: gem-artifact
93+
- name: Install Ruby
94+
uses: ruby/setup-ruby@v1
95+
with:
96+
ruby-version: 'ruby'
97+
- name: Wait for release to propagate
98+
shell: bash
99+
run: |
100+
gem install rubygems-await
101+
gem await *.gem
102+

.github/workflows/release_prep.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1-
<!-- markdownlint-disable MD024 -->
21
# Changelog
32

43
All notable changes to this project will be documented in this file.
54

5+
## [v5.0.0](https://github.com/voxpupuli/openvox-strings/tree/v5.0.0) (2025-06-10)
6+
7+
[Full Changelog](https://github.com/voxpupuli/openvox-strings/compare/v4.1.3...v5.0.0)
8+
9+
**Breaking changes:**
10+
11+
- Switch from puppet to openvox [\#2](https://github.com/voxpupuli/openvox-strings/pull/2) ([bastelfreak](https://github.com/bastelfreak))
12+
13+
**Implemented enhancements:**
14+
15+
- Rake task allows for a different commit message [\#4](https://github.com/voxpupuli/openvox-strings/pull/4) ([bastelfreak](https://github.com/bastelfreak))
16+
- Add Ruby 2.7/3.0 support [\#3](https://github.com/voxpupuli/openvox-strings/pull/3) ([bastelfreak](https://github.com/bastelfreak))
17+
18+
<!-- markdownlint-disable MD024 -->
619
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
720

8-
## [v4.1.3](https://github.com/puppetlabs/puppet-strings/tree/v4.1.3) - 2024-09-05
21+
## [v4.1.3](https://github.com/voxpupuli/openvox-strings/tree/v4.1.3) - 2024-09-05
922

10-
[Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/v4.1.2...v4.1.3)
23+
[Full Changelog](https://github.com/voxpupuli/openvox-strings/compare/v4.1.2...v4.1.3)
1124

1225
### Fixed
1326

@@ -389,3 +402,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
389402
## [0.1.0](https://github.com/puppetlabs/puppet-strings/tree/0.1.0) - 2014-10-07
390403

391404
[Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/a9408c792ba48ffc5e59d8641a538a83197b7064...0.1.0)
405+
406+
407+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

CODEOWNERS

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)