diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-09-07 20:18:18 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-09-07 21:31:39 +0200 |
| commit | 91a4985eacc25178171d2813d88df3fdfa91e188 (patch) | |
| tree | dddd3543a26d58a3f24c9685d91bb1464a96890c /.github | |
| parent | ed937a30860839aedde56844f7c27fbbf31fbbdb (diff) | |
Add github release workflow
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4eefd00 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,44 @@ +--- +name: "Build and Release" +on: + push: + tags: + - v* +permissions: + contents: write +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.25' + - name: Golangci-lint + uses: golangci/[email protected] + - name: Install dependencies + run: make deps + - name: Run lints + run: make lint + - name: Build binaries + run: make build + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: wg-portal-binaries + path: dist/ + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + files: | + dist/wg-portal-linux-amd64 + dist/wg-portal-linux-arm64 + dist/wg-portal-linux-arm + dist/checksums.txt + generate_release_notes: true + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
