-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 957 Bytes
/
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
---
on:
push:
tags:
- '*'
name: Release 🚀
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Make release
env:
GH_TOKEN: ${{ github.token }}
run: |
bundle config set --local with 'release'
bundle install
mkdir -p build
bundle exec github_changelog_generator \
--user ${{ github.repository_owner }} \
--project "gha-test-repo" \
--since-tag ${{ steps.previoustag.outputs.tag }} \
--output build/changelog.md
gh release create ${{ github.ref_name }} --notes-file build/changelog.md --title "Release ${{ github.ref_name }}"