Skip to content

Commit 7fcf358

Browse files
author
Alex Evanczuk
committed
Update CD to only run after CI has completed
1 parent 6a8e03a commit 7fcf358

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/cd.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: CD
22

33
on:
4-
push:
5-
branches:
6-
- "main"
4+
workflow_run:
5+
workflows: [CI]
6+
types: [completed]
7+
branches: [main]
78
jobs:
89
deploy:
910
runs-on: ubuntu-latest
@@ -19,8 +20,7 @@ jobs:
1920
GIT_NAME: ${{secrets.ALEX_GIT_NAME}}
2021
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
2122
- name: Create GitHub Release
22-
uses: softprops/action-gh-release@cd28b0f5ee8571b76cfdaa62a30d51d752317477
23+
run: gh release create v${{steps.tag-and-push-gem.outputs.gem_version}} --generate-notes
2324
if: ${{ steps.tag-and-push-gem.outputs.new_version == 'true' }}
24-
with:
25-
tag_name: v${{steps.tag-and-push-gem.outputs.gem_version}}
26-
generate_release_notes: true
25+
env:
26+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)