-
-
Notifications
You must be signed in to change notification settings - Fork 968
Closed
Description
The current publishing GitHub action looks like this:
name: Push Gem
on:
push:
tags:
- v*
jobs:
push:
if: github.repository == 'segiddins/rubygems-await'
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
# Set up
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby
- name: Set remote URL
run: |
# Attribute commits to the last committer on HEAD
git config --global user.email "$(git log -1 --pretty=format:'%ae')"
git config --global user.name "$(git log -1 --pretty=format:'%an')"
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY"
# Release
- uses: rubygems/configure-rubygems-credentials@v1.0.0
- name: Release
run: bundle exec rake release
- name: Wait for release to propagate
run: gem exec rubygems-await -- pkg/*.gem
I would like us to be able to offer potential rubygem authors a default workflow that does the exact same steps, but that they can set up like this:
on:
push:
tags: ["v*"]
jobs:
push:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: rubygems/publish@v1
Metadata
Metadata
Assignees
Labels
No labels