-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 942 Bytes
/
release.yml
File metadata and controls
44 lines (36 loc) · 942 Bytes
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
name: Create releases
on:
push:
tags:
- "v*"
permissions:
contents: write
actions: read
pull-requests: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true
- name: Generate changelog
run: |
bundle exec rake changelog[,${TAG_NAME}] > /tmp/changelog.md
cat /tmp/changelog.md
env:
TAG_NAME: ${{ github.ref_name }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: /tmp/changelog.md
- name: Slack Notification (not success)
uses: act10ns/slack@v2
if: "! success()"
continue-on-error: true
with:
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}