-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release workflow using Trusted publishing
Releasing is done now by publishing a new release on GitHub.
- Loading branch information
1 parent
6c924e2
commit c5ca9d5
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
environment: release | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: 3.3.4 | ||
- name: Configure trusted publishing credentials | ||
uses: rubygems/[email protected] | ||
- name: Run release rake task | ||
run: bundle exec rake release | ||
shell: bash | ||
- name: Wait for release to propagate | ||
run: gem exec rubygems-await pkg/*.gem | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters