We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8e03a commit 7fcf358Copy full SHA for 7fcf358
.github/workflows/cd.yml
@@ -1,9 +1,10 @@
1
name: CD
2
3
on:
4
- push:
5
- branches:
6
- - "main"
+ workflow_run:
+ workflows: [CI]
+ types: [completed]
7
+ branches: [main]
8
jobs:
9
deploy:
10
runs-on: ubuntu-latest
@@ -19,8 +20,7 @@ jobs:
19
20
GIT_NAME: ${{secrets.ALEX_GIT_NAME}}
21
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
22
- name: Create GitHub Release
- uses: softprops/action-gh-release@cd28b0f5ee8571b76cfdaa62a30d51d752317477
23
+ run: gh release create v${{steps.tag-and-push-gem.outputs.gem_version}} --generate-notes
24
if: ${{ steps.tag-and-push-gem.outputs.new_version == 'true' }}
- with:
25
- tag_name: v${{steps.tag-and-push-gem.outputs.gem_version}}
26
- generate_release_notes: true
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments