summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 20:22:09 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 20:22:09 +0100
commit5a8dbc6347b3541e84fe669b22c17ad3b715e258 (patch)
treeb148c450939688caaaeb4adac6f2faa1eaffe649 /.github/workflows
downloadqwe-editor-5a8dbc6347b3541e84fe669b22c17ad3b715e258.tar.gz
Engage!
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..c4e2958
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,52 @@
+name: Build
+
+on:
+ push:
+ tags: [ 'v*' ]
+
+jobs:
+ build:
+ name: Build on ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macos-latest]
+
+ permissions:
+ contents: write
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Set up Go
+ uses: actions/setup-go@v5
+ with:
+ go-version: '1.25'
+
+ - name: Build
+ run: make qwe
+
+ - name: Upload artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: qwe-${{ runner.os }}
+ path: qwe
+
+ - name: Rename for release
+ run: |
+ if [ "${{ runner.os }}" = "macOS" ]; then
+ cp qwe qwe-macos
+ else
+ cp qwe qwe-linux
+ fi
+
+ - name: Release
+ uses: softprops/action-gh-release@v2
+ with:
+ files: |
+ qwe-macos
+ qwe-linux
+ generate_release_notes: true