Skip to content

Commit 32884d3

Browse files
author
childish-sambino
authored
feat: add GitHub release step during deploy (#586)
1 parent 45ba9a6 commit 32884d3

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/test-and-deploy.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ jobs:
4545
with:
4646
fetch-depth: 0
4747

48+
- name: Set up Ruby
49+
uses: ruby/setup-ruby@v1
50+
with:
51+
ruby-version: 2.4
52+
bundler-cache: true
53+
54+
- run: bundle install
55+
4856
- name: Login to Docker Hub
4957
uses: docker/login-action@v1
5058
with:
@@ -55,16 +63,13 @@ jobs:
5563
- name: Get tagged version
5664
run: echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
5765

66+
- name: Create GitHub Release
67+
uses: sendgrid/dx-automator/actions/release@main
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
5871
- name: Build and Push image
5972
run: make docker-build && make docker-push
60-
61-
- name: Set up Ruby
62-
uses: ruby/setup-ruby@v1
63-
with:
64-
ruby-version: 2.4
65-
bundler-cache: true
66-
67-
- run: bundle install
6873
- name: Publish to Rubygems
6974
env:
7075
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}

0 commit comments

Comments
 (0)