Skip to content

Commit 6dae2db

Browse files
authored
add release workflow (#28)
* zip and tar in workflow * only consider selected tags for release notes
1 parent 0e68a74 commit 6dae2db

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

.github/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
exclude:
5+
labels:
6+
- ignore-for-release
7+
authors:
8+
- octocat
9+
categories:
10+
- title: Breaking Changes 🛠
11+
labels:
12+
- breaking-change
13+
- title: Exciting New Features 🎉
14+
labels:
15+
- feat
16+
- title: Documentation changes
17+
labels:
18+
- docs
19+
- example
20+
- test
21+
- title: Other changes
22+
labels:
23+
- refactor
24+
- tooling

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v3
14+
- name: Install dependencies
15+
run: sudo apt-get install tar zip -y
16+
- name: Create tarball
17+
run: tar -czvf header-only.tar.gz include
18+
- name: Create zip
19+
run: zip -r header-only.zip include
1420
- name: Release
1521
uses: softprops/action-gh-release@v1
1622
with:
1723
files: |
18-
include/*
19-
include/**/*
20-
generate_release_notes: false
24+
header-only.zip
25+
header-only.tar.gz
26+
generate_release_notes: true

0 commit comments

Comments
 (0)