-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1021 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: Prep environment
run: |
bundle config set --local with 'release'
bundle install
mkdir -p build
- name: Gen changelog
env:
GH_TOKEN: ${{ github.token }}
run: |
PTAG=$(git describe --abbrev=0 --tags --exclude="$(git describe --abbrev=0 --tags)")
bundle exec github_changelog_generator --user ${{ github.repository_owner }} --project "gha-test-repo" --since-tag ${PTAG} --future-release ${{ github.ref_name }} --output build/changelog.md
- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create ${{ github.ref_name }} --notes-file build/changelog.md --title "Release ${{ github.ref_name }}"