Skip to content

Commit 0f1b5ac

Browse files
committed
Add Github actions for releases & updates
1 parent ba4c0c9 commit 0f1b5ac

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "gomod"
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "monthly"
12+
- package-ecosystem: "github-actions"
13+
directory: "/" # Location of package manifests
14+
schedule:
15+
interval: "monthly"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
name: Build & release
6+
jobs:
7+
releases-matrix:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
goos: [linux, windows, darwin]
13+
goarch: ["386", amd64, arm, arm64]
14+
exclude:
15+
- goarch: "386"
16+
goos: darwin
17+
- goarch: arm
18+
goos: darwin
19+
- goarch: arm
20+
goos: windows
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
# build the binaries
25+
- uses: wangyoucao577/go-release-action@v1.41
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
goos: ${{ matrix.goos }}
29+
goarch: ${{ matrix.goarch }}
30+
binary_name: "wireguard-vanity-keygen"
31+
pre_command: export CGO_ENABLED=0
32+
asset_name: wireguard-vanity-keygen-${{ matrix.goos }}-${{ matrix.goarch }}
33+
extra_files: LICENSE README.md
34+
md5sum: false
35+
overwrite: true
36+
retry: 5
37+
ldflags: -w -X "main.appVersion=${{ github.ref_name }}"

0 commit comments

Comments
 (0)