Update sync_warp-go.yml

dependabot/github_actions/goreleaser/goreleaser-action-4
fscarmen 3 years ago committed by GitHub
parent ca69fbdeca
commit 5421030fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      .github/workflows/sync_warp-go.yml

@ -2,8 +2,8 @@ name: Sync WireGuard-go
on:
workflow_dispatch:
# schedule:
# - cron: '18 2 * * *'
schedule:
- cron: '18 2 * * *'
jobs:
WireGuard-go:
@ -19,7 +19,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3.3.0
uses: actions/checkout@v3
with:
fetch-depth: 0
@ -32,25 +32,22 @@ jobs:
git clone https://git.zx2c4.com/wireguard-go ${{ env.WORKDIR }}
cp ./.github/wireguard-go-releaser.yml ${{ env.WORKDIR }}/.goreleaser.yml
echo "VERSION=$LATEST" >> $GITHUB_ENV
echo "flags=--snapshot" >> $GITHUB_ENV
fi
- name: Set up GoReleaser
uses: actions/setup-go@v3
uses: actions/setup-go@v2
if: ${{ env.VERSION != '' }}
with:
go-version: "1.18"
- name: Cross compile WireGuard-go
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v2
if: ${{ env.VERSION != '' }}
with:
distribution: goreleaser
workdir: ${{ env.WORKDIR }}
version: latest
args: release --clean ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
args: release --rm-dist
- name: Release binaries
uses: softprops/action-gh-release@v1

Loading…
Cancel
Save