Skip to content

Commit 28e0146

Browse files
Merge pull request #7 from fac/devp/setup-v2-docs
Update docs for new ruby-gem-setup-credentials-action
2 parents 399af87 + 6173353 commit 28e0146

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ TODO: v2 changes
44

55
## [Unreleased]
66

7+
## [2.0.1] - 2021-04-26
8+
9+
- Update: README to show usage with renamed `ruby-gem-setup-credentials@v2`
10+
711
## [2.0.0] - 2021-04-26
812

913
- Change: Don't pass the gem host around as an environment variable, extract from the gemspec.

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Description
44

55
Action to push gems to a gem cutter compatible repository. Basically RubyGems or GitHub Packages. It expects the authentication to have already been setup, `~/.gem/credentials` contains a token for the repo and you know the name of the key.
6-
See [fac/ruby-gem-setup-github-packages-action](https://github.com/fac/ruby-gem-setup-github-packages-action) for an action to set this up for you. It is actually pretty easy if pushing to the same repo.
6+
See [fac/ruby-gem-credentials-action](https://github.com/fac/ruby-gem-credentials-action) for an action to set this up for you. It is actually pretty easy if pushing to the same repo.
77

88
If the gem version already exists in the repo the action will no-op and still set a success status. This makes it easier to integrate into workflows, safe to re-run (intentionally or accidentally) and wont push duplicate/replacement packages.
99
It will still raise an error visible in the summary, letting you know the version already exists.
@@ -22,9 +22,10 @@ Build and push all new version of the gem:
2222
- uses: ruby/setup-ruby@v1 # .ruby-version
2323
with:
2424
bundler-cache: true # bundle install
25+
2526
- run: bundle exec rake build
2627

27-
- uses: fac/ruby-gem-setup-github-packages-action@v2
28+
- uses: fac/ruby-gem-setup-credentials-action@v2
2829
with:
2930
token: ${{ secrets.github_token }}
3031

@@ -67,13 +68,13 @@ jobs:
6768
steps:
6869
- uses: actions/checkout@v2
6970
- uses: ruby/setup-ruby@v1
70-
- run: bundle exec rake build
71-
72-
# Setup repo auth
73-
- uses: fac/ruby-gem-setup-github-packages-action@v2
71+
- uses: fac/ruby-gem-setup-credentials-action@v2
7472
with:
7573
token: ${{ secrets.github_token }}
7674
75+
- name: Build Gem
76+
run: bundle exec rake build
77+
7778
# Release production gem version from default branch
7879
- name: Release Gem
7980
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)