Skip to content

Commit 825e6b4

Browse files
use shared-config for CD workflow (#93)
1 parent 023b76c commit 825e6b4

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

Diff for: .github/workflows/cd.yml

+4-18
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,8 @@ on:
55
workflows: [CI]
66
types: [completed]
77
branches: [main]
8+
89
jobs:
9-
deploy:
10-
runs-on: ubuntu-latest
11-
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event != 'schedule' }}
12-
steps:
13-
- uses: actions/checkout@v3
14-
- name: Tag and Push Gem
15-
id: tag-and-push-gem
16-
uses: discourse/publish-rubygems-action@v2
17-
env:
18-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
19-
GIT_EMAIL: ${{secrets.GUSTO_GIT_EMAIL}}
20-
GIT_NAME: ${{secrets.GUSTO_GIT_NAME}}
21-
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
22-
- name: Create GitHub Release
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' }}
25-
env:
26-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
call-workflow-from-shared-config:
11+
uses: rubyatscale/shared-config/.github/workflows/cd.yml@main
12+
secrets: inherit

0 commit comments

Comments
 (0)