1
0
Fork 0

Merging upstream version 0.0.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-05 15:17:18 +01:00
parent 2308adea4c
commit 725962f958
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
3 changed files with 30 additions and 0 deletions

22
.github/workflows/release.yaml vendored Normal file
View file

@ -0,0 +1,22 @@
---
name: release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Archive
run: make inotify-info-${{ github.ref_name }}.tar.gz
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
files: inotify-info-${{ github.ref_name }}.tar.gz
generate_release_notes: true
draft: true
prerelease: true

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
_debug/
_release/
/inotify-info-v*.tar.gz

View file

@ -109,3 +109,9 @@ clean:
$(VERBOSE_PREFIX)$(RM) $(OBJS)
$(VERBOSE_PREFIX)$(RM) $(OBJS:.o=.d)
$(VERBOSE_PREFIX)$(RM) $(OBJS:.o=.dwo)
define RELEASE_RULES
inotify-info-$(TAG).tar.gz:
git archive --prefix=inotify-info-$(TAG)/ $(TAG) | gzip -n > $$@
endef
$(foreach TAG,$(shell git tag 2>/dev/null),$(eval $(RELEASE_RULES)))