diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2020-01-20 23:26:03 +0300 |
|---|---|---|
| committer | Marat Radchenko <marat@slonopotamus.org> | 2020-01-20 23:26:03 +0300 |
| commit | 72a4af72170204be59ed9be503edb372f2aec07a (patch) | |
| tree | 2691be24edf3f436d2069713bf14480330b80ab2 /.github/workflows | |
| parent | 8385ab7c7347ef2eaae8eb2db2ef158f6a853090 (diff) | |
Replace cadwallion/publish-rubygems-action with manual call of `gem push`
Turns out, cadwallion/publish-rubygems-action doesn't work:
https://github.com/asciidoctor/asciidoctor-epub3/commit/f5f74c7fa783bf6b50031394592bec335cef5fb9/checks?check_suite_id=410741589#step:5:6
In the future, this manual step could be replaced with a different action (if one exists).
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/release.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23dfdad..e571b92 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,12 @@ jobs: with: ruby-version: 2.7 - name: Publish to RubyGems.org - uses: cadwallion/publish-rubygems-action@master + run: | + mkdir -p $HOME/.gem + touch $HOME/.gem/credentials + chmod 0600 $HOME/.gem/credentials + printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials + gem build *.gemspec + gem push *.gem env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} |
