Skip to content

fix: testing release for CI #27

fix: testing release for CI

fix: testing release for CI #27

name: Semantic Release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
with:
fetch-depth: 0
- name: Release
uses: cycjimmy/semantic-release-action@v4.1.0
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/github
@semantic-release/release-notes-generator
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Discord notification
if: steps.semantic-release.outputs.version != 'null'
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: '
[{
"title": "New Release: ${{ steps.semantic-release.outputs.version }}",
"description": "${{ steps.semantic-release.outputs.notes }}",
"footer": {"text": "Pushed by ${{ github.event.head_commit.author.name }}"}
}]'