From 2bb5753d5841f510d1c87008208f7514f9aa56d3 Mon Sep 17 00:00:00 2001 From: peolic <66393006+peolic@users.noreply.github.com> Date: Tue, 20 Dec 2022 12:55:02 +0200 Subject: [PATCH] fix workflow syntax --- .github/workflows/build-and-release.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index e88465e..6901fad 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -2,7 +2,6 @@ name: Build and release on: workflow_dispatch: - on: release: types: [created] @@ -30,14 +29,14 @@ jobs: steps: - uses: actions/checkout@v3 - uses: wangyoucao577/go-release-action@v1.34 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - goos: ${{ matrix.goos }} - goarch: ${{ matrix.goarch }} - goversion: latest - ldflags: -extldflags=-static -s -w - project_path: ./cmd/${{ matrix.project }} - asset_name: ${{ matrix.project }}-${{ matrix.goos }}-${{ matrix.goarch }} - overwrite: true - md5sum: true - sha256sum: true + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: latest + ldflags: -extldflags=-static -s -w + project_path: ./cmd/${{ matrix.project }} + asset_name: ${{ matrix.project }}-${{ matrix.goos }}-${{ matrix.goarch }} + overwrite: true + md5sum: true + sha256sum: true