Skip to content

Commit 194ddf5

Browse files
authored
Fix GPR auth: use credentials file instead of env var (#14)
1 parent 093013c commit 194ddf5

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ jobs:
2525
- name: Build gem
2626
run: gem build lizard.gemspec
2727

28+
- name: Set up GPR credentials
29+
run: |
30+
mkdir -p ~/.gem
31+
echo -e "---\n:github: Bearer ${{ secrets.GITHUB_TOKEN }}" > ~/.gem/credentials
32+
chmod 0600 ~/.gem/credentials
33+
2834
- name: Publish to GitHub Packages
29-
env:
30-
GEM_HOST_API_KEY: Bearer ${{ secrets.GITHUB_TOKEN }}
31-
run: gem push --host https://rubygems.pkg.github.com/djbender lizard-*.gem
35+
run: gem push --key github --host https://rubygems.pkg.github.com/djbender lizard-*.gem
3236

3337
- name: Create GitHub Release
3438
env:

0 commit comments

Comments
 (0)