aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build-release.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-release.yaml')
-rw-r--r--.github/workflows/build-release.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml
new file mode 100644
index 0000000..03c6deb
--- /dev/null
+++ b/.github/workflows/build-release.yaml
@@ -0,0 +1,35 @@
+name: Build and Release go-assembly-ldr
+
+on:
+ push:
+ tags:
+ - 'v*'
+
+permissions:
+ contents: write
+
+jobs:
+ build-and-release:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Set up Go
+ uses: actions/setup-go@v5
+ with:
+ go-version: '1.21.x'
+
+ - name: Build binaries
+ run: make all
+
+ - name: Release
+ uses: softprops/action-gh-release@v2
+ with:
+ files: build/*
+ draft: false
+ prerelease: false
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}