-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.07 KB
/
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
name: Release
on:
workflow_run:
workflows: ["Quality Check"]
types: [completed]
branches:
- 'master'
jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: write
name: "Release new package version"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish Tag
id: semantic
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/changelog
@semantic-release/git
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Publish release
if: steps.semantic.outputs.new_release_published == 'true'
uses: ncipollo/release-action@v1
with:
name: ${{ steps.semantic.outputs.new_release_version }}
body: ${{ steps.semantic.outputs.new_release_notes }}
tag: ${{ steps.semantic.outputs.new_release_git_tag }}