summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Marc <hi@colinmarc.com>2022-02-05 22:45:09 +0100
committerColin Marc <hi@colinmarc.com>2022-02-05 22:59:52 +0100
commit09d3a50a3a574a20e64b400ef06b194e8773ae49 (patch)
tree86fb96d1d38bbcdc6f58073e3fd7893e7a150058
parent17d7dc39446a18e58af3b282ded74c2549263fa2 (diff)
Add a release workflow
-rw-r--r--.github/workflows/release.yml39
-rw-r--r--.gitignore1
2 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..d974f23
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,39 @@
+name: Release
+
+on:
+ push:
+ tags:
+ - "v*.*.*"
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Release
+ uses: softprops/action-gh-release@v1
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+ workflow_dispatch:
+
+jobs:
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-go@v2
+ with:
+ go-version: 1.17
+
+ # Touching the generated proto files ensures that make will not try to
+ # regenerate them.
+ - name: make release
+ run: find -name '*.pb.go' -exec touch {} \; && make release
+
+ - name: Upload Release
+ uses: softprops/action-gh-release@v1
+ with:
+ files: gohdfs-*-linux-amd64.tar.gz \ No newline at end of file
diff --git a/.gitignore b/.gitignore
index cb7391a..d610892 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
build
+gohdfs*
hdfs
!hdfs/
minicluster.log