add token #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |
PTAG=$(git --no-pager tag --list | sort --version-sort | tail -n2 | head -n1) | |
- name: Gen changelog | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: bundle exec github_changelog_generator --user ${{ github.repository_owner }} --project "gha-test-repo" --since-tag ${PTAG} --output build/changelog.md | |
- name: Show changelog | |
run: cat build/changelog.md | |
- name: Release | |
run: gh release create ${{ github.ref_name }} --notes-file build/changelog.md --title "Release ${{ github.ref_name }}" |