Skip to content

Commit 2e7c226

Browse files
committed
notes
1 parent a8feb96 commit 2e7c226

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/cd.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,34 @@ name: Continuous Deployment # Well, semi-continuous
33
on:
44
push:
55
tags: v[0-9]+.[0-9]+.[0-9]+
6+
67
env:
78
RUBY_VER: 3.1
9+
810
jobs:
911
test:
1012
uses: ./.github/workflows/test.yml
1113
with:
1214
code_coverage: true
15+
1316
release-rubygems:
1417
needs: [test]
1518
runs-on: ubuntu-latest
1619
steps:
1720
- uses: actions/checkout@v2
1821
with:
1922
submodules: true
23+
24+
# TODO this does not work with MFA on rubygems. https://github.com/cadwallion/publish-rubygems-action/issues/19
25+
# Until fixed, use manual $(bundle exec rake relese) afer creating a tag, or just just the full $(gem bump --version minor --tag --push --release) with the `--release` switch.
2026
- name: Release Gem to rubygems.org
2127
if: contains(github.ref, 'refs/tags/v')
2228
uses: cadwallion/publish-rubygems-action@master
2329
env:
2430
GITHUB_TOKEN: ${{ github.token }}
2531
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
2632
RELEASE_COMMAND: bundle exec rake release
33+
2734
release-github:
2835
# Manual push can be done as descried here: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry#publishing-a-package
2936
needs: [test]
@@ -32,6 +39,7 @@ jobs:
3239
- uses: actions/checkout@v2
3340
with:
3441
submodules: true
42+
3543
- name: Build and publish gem to GitHub Packages
3644
if: contains(github.ref, 'refs/tags/v')
3745
uses: jstastny/publish-gem-to-github@master

0 commit comments

Comments
 (0)