-
Notifications
You must be signed in to change notification settings - Fork 8
76 lines (61 loc) · 1.58 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Publish gem to Rubygem
on:
push:
tags:
- '*'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
ci:
uses: enspirit/bmg/.github/workflows/integration.yml@master
rubygem:
needs: ci
runs-on: ubuntu-latest
steps:
- uses: act10ns/slack@v1
with:
status: starting
channel: '#opensource-cicd'
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4
bundler-cache: true
- run: make package
- name: Release Gem
uses: cadwallion/publish-rubygems-action@master
id: gem-push
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
RELEASE_COMMAND: make gem.push
- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#opensource-cicd'
if: always()
github:
needs: ci
runs-on: ubuntu-latest
steps:
- uses: act10ns/slack@v1
with:
status: starting
channel: '#opensource-cicd'
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4
bundler-cache: true
- run: make package
- uses: ncipollo/release-action@v1
id: create-release
with:
artifacts: "pkg/*"
token: ${{ secrets.GITHUB_TOKEN }}
- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#opensource-cicd'
if: always()