Skip to content

Commit

Permalink
fix: ci setup credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
matthv committed Nov 20, 2023
1 parent 07a7411 commit 5a33f54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ jobs:
- name: Install semantic release dependencies
run: yarn

- name: Setup credentials
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${{secrets.GEM_HOST_API_KEY}}\n" > $HOME/.gem/credentials
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic
Expand Down
4 changes: 0 additions & 4 deletions .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ module.exports = {
'sed -i \'s/VERSION = ".*"/VERSION = "${nextRelease.version}"/g\' packages/forest_admin_datasource_toolkit/lib/forest_admin_datasource_toolkit/version.rb; '+
'sed -i \'s/VERSION = ".*"/VERSION = "${nextRelease.version}"/g\' packages/forest_admin_rails/lib/forest_admin_rails/version.rb; ',
successCmd:
'mkdir -p $HOME/.gem '+
'touch $HOME/.gem/credentials '+
'chmod 0600 $HOME/.gem/credentials '+
'printf -- "---\n:rubygems_api_key: ${env.GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials '+
'( cd packages/forest_admin_agent && gem build && touch .trigger-rubygem-release )' +
'( cd packages/forest_admin_datasource_active_record && gem build && touch .trigger-rubygem-release )' +
'( cd packages/forest_admin_datasource_toolkit && gem build && touch .trigger-rubygem-release )' +
Expand Down

0 comments on commit 5a33f54

Please sign in to comment.