Skip to content

Commit 30c3ece

Browse files
committed
publish on rubygems.org instead of Github
Github Package Repository doesn't allow anonymous download of public gems, this is useless for us as we need to be able to download the gem from everywhere by anyone.
1 parent fd09ed8 commit 30c3ece

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Publish gem to Github Package Repository
3030
uses: addnab/docker-run-action@v3
3131
env:
32-
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
32+
GEM_HOST_API_KEY: "Bearer ${{secrets.RUBYGEM_PUSH_KEY}}"
3333
OWNER: ${{ github.repository_owner }}
3434
with:
3535
image: linuxfrorg/board-sse-linuxfr.org:${{ github.sha }}
@@ -43,5 +43,5 @@ jobs:
4343
mkdir -p "${HOME}/.gem"
4444
touch "${HOME}/.gem/credentials"
4545
chmod 0600 "${HOME}/.gem/credentials"
46-
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > "${HOME}/.gem/credentials"
47-
gem push --KEY github --host "https://rubygems.pkg.github.com/${OWNER}" *.gem
46+
printf -- "---\n:rubygem: ${GEM_HOST_API_KEY}\n" > "${HOME}/.gem/credentials"
47+
gem push --KEY rubygem *.gem

0 commit comments

Comments
 (0)