Skip to content

Release

Release #203

Workflow file for this run

name: "Release"
on: workflow_dispatch
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: npm i -D --no-save conventional-changelog-conventionalcommits @semantic-release/git @semantic-release/exec
- uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 24.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Discord notification (not success)"
uses: rjstone/discord-webhook-notify@v1
if: "! success()"
with:
description: "⚠ Another Quick Switcher Release failed!"
details: "${{ github.ref }}"
severity: error
avatarUrl: https://www.suruga-ya.jp/database/pics_light/game/871005085.jpg
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
notify:
needs: release
runs-on: ubuntu-latest
steps:
- name: "Discord notification (success)"
uses: rjstone/discord-webhook-notify@v1
if: always()
with:
description: "🚀 Another Quick Switcher Release finished!"
details: "${{ github.ref }}"
severity: info
avatarUrl: https://www.suruga-ya.jp/database/pics_light/game/871005085.jpg
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}