Skip to content

Merge pull request #362 from ruby-go-gem/revert-361-release_gem #25

Merge pull request #362 from ruby-go-gem/revert-361-release_gem

Merge pull request #362 from ruby-go-gem/revert-361-release_gem #25

Workflow file for this run

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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
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@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
with:
body_path: /tmp/changelog.md
- name: Slack Notification (not success)
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
if: "! success()"
continue-on-error: true
with:
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}