summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:02:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:02:11 +0000
commit11dc4717bec44bccf81f845812fe5f3ea2aa503d (patch)
treefd8aaa56be3c8230a5b514138b9bab9174815598
parentAdding debian version 0~20240209-1. (diff)
downloadinotify-info-11dc4717bec44bccf81f845812fe5f3ea2aa503d.tar.xz
inotify-info-11dc4717bec44bccf81f845812fe5f3ea2aa503d.zip
Merging upstream version 0.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--.github/workflows/release.yaml22
-rw-r--r--.gitignore2
-rw-r--r--Makefile6
3 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
new file mode 100644
index 0000000..f5e422f
--- /dev/null
+++ b/.github/workflows/release.yaml
@@ -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
diff --git a/.gitignore b/.gitignore
index 08376e7..d8a5a7d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
_debug/
_release/
+
+/inotify-info-v*.tar.gz
diff --git a/Makefile b/Makefile
index 643c951..6bf0e0a 100644
--- a/Makefile
+++ b/Makefile
@@ -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)))