Skip to content

Commit

Permalink
publish on rubygems.org instead of Github
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Trim committed Mar 22, 2024
1 parent fd09ed8 commit 30c3ece
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Publish gem to Github Package Repository
uses: addnab/docker-run-action@v3
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
GEM_HOST_API_KEY: "Bearer ${{secrets.RUBYGEM_PUSH_KEY}}"
OWNER: ${{ github.repository_owner }}
with:
image: linuxfrorg/board-sse-linuxfr.org:${{ github.sha }}
Expand All @@ -43,5 +43,5 @@ jobs:
mkdir -p "${HOME}/.gem"
touch "${HOME}/.gem/credentials"
chmod 0600 "${HOME}/.gem/credentials"
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > "${HOME}/.gem/credentials"
gem push --KEY github --host "https://rubygems.pkg.github.com/${OWNER}" *.gem
printf -- "---\n:rubygem: ${GEM_HOST_API_KEY}\n" > "${HOME}/.gem/credentials"
gem push --KEY rubygem *.gem

0 comments on commit 30c3ece

Please sign in to comment.