Skip to content

Commit 78d02f7

Browse files
committed
ci: Added ability to manually release
1 parent 5c16c9e commit 78d02f7

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Manual Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
changelog:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: conventional Changelog Action
14+
id: changelog
15+
uses: TriPSs/conventional-changelog-action@v3.7.1
16+
with:
17+
github-token: ${{ secrets.CHANGELOG_RELEASE }}
18+
version-file: './composer.json'
19+
output-file: 'false'
20+
skip-on-empty: 'false'
21+
22+
- name: create release
23+
uses: actions/create-release@v1
24+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }}
27+
with:
28+
tag_name: ${{ steps.changelog.outputs.tag }}
29+
release_name: ${{ steps.changelog.outputs.tag }}
30+
body: ${{ steps.changelog.outputs.clean_changelog }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Releases
1+
name: Automated Releases
22

33
on:
44
push:

0 commit comments

Comments
 (0)