summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakka <jakkadoujin@gmail.com>2025-04-13 14:09:44 +0300
committerGitHub <noreply@github.com>2025-04-13 14:09:44 +0300
commit541c769e79a83ad9761c0e1af0a7b40d5c071053 (patch)
tree96b52d6bb09823a9d7ed16a022122f0397e69073
parent7185e9e05193fb4666ea8faa9bfaef6231630aa5 (diff)
Create main.yml
-rw-r--r--.github/workflows/main.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..7f54a2b
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,37 @@
+name: Release
+on:
+ release:
+ types: [created]
+
+permissions:
+ contents: write
+ packages: write
+
+concurrency:
+ group: release-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ releases-matrix:
+ name: Release Go Binary
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ goos: [linux, windows, darwin]
+ goarch: [amd64, arm64]
+ exclude:
+ - goarch: arm64
+ goos: linux
+ - goarch: arm64
+ goos: windows
+ steps:
+ - uses: actions/checkout@v4
+ - uses: wangyoucao577/go-release-action@v1
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ goos: ${{ matrix.goos }}
+ goarch: ${{ matrix.goarch }}
+ goversion: 1.24.2
+ binary_name: "reencoder"
+ compress_assets: OFF
+ project_path: ./cmd/