mirror of https://gitlab.com/fscarmen/test.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
876 B
36 lines
876 B
name: Build WireGuard-go
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
WireGuard-go:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: "1.18"
|
|
|
|
- name: Git clone
|
|
run: |
|
|
git clone https://git.zx2c4.com/wireguard-go
|
|
cp ./github/goreleaser.yml wireguard-go/
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v2
|
|
with:
|
|
distribution: goreleaser
|
|
version: latest
|
|
workdir: ./wireguard-go
|
|
args: release --rm-dist
|
|
|
|
- name: Release binaries
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
tag_name: wireguard-go
|
|
files: $workdir/dist/*.tar.gz
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|