-
Notifications
You must be signed in to change notification settings - Fork 40
40 lines (36 loc) · 1.15 KB
/
semantic-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
38
39
40
name: Semantic Release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Release
uses: cycjimmy/[email protected]
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.nextRelease.version != 'null'
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: '
[{
"title": "New Release: ${{ steps.semantic-release.outputs.nextRelease.version }}",
"description": "${{ steps.semantic-release.outputs.nextRelease.notes }}",
"footer": {"text": "Pushed by ${{ github.event.head_commit.author.name }}"}
}]'