Skip to content

Commit 59c1738

Browse files
committed
feat: release for every commit
1 parent 9b378da commit 59c1738

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

.github/workflows/build-and-release.yml

-8
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,3 @@ jobs:
3535
- name: Prefix binary name
3636
run: cp target/release/aoede.exe target/release/${{ matrix.os }}-aoede.exe
3737
continue-on-error: true
38-
39-
- name: Release
40-
uses: softprops/action-gh-release@v1
41-
if: startsWith(github.ref, 'refs/tags/v')
42-
with:
43-
files: target/release/*-aoede!(*.d|*.pdb)
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/create-release.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Create tag & GitHub release from conventional commits
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Conventional Changelog Action
18+
id: changelog
19+
uses: TriPSs/conventional-changelog-action@v3
20+
with:
21+
output-file: "false"
22+
skip-ci: "false"
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
version-file: "Cargo.toml"
25+
version-path: "package.version"
26+
27+
- name: Create Release
28+
uses: softprops/action-gh-release@v1
29+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
30+
with:
31+
tag_name: ${{ steps.changelog.outputs.tag }}
32+
body: ${{ steps.changelog.outputs.clean_changelog }}

0 commit comments

Comments
 (0)