diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml index 8170c60..255408a 100644 --- a/.github/workflows/publish-binaries.yml +++ b/.github/workflows/publish-binaries.yml @@ -1,6 +1,7 @@ on: - release: - types: [created] + push: + tags: + - v* jobs: release: @@ -16,6 +17,12 @@ jobs: goos: darwin steps: - uses: actions/checkout@v2 + - name: Set APP_VERSION env + run: echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV} + - name: Set BUILD_TIME env + run: echo BUILD_TIME=$(date) >> ${GITHUB_ENV} + - name: Environment Printer + uses: managedkaos/print-env@v1.0 - uses: wangyoucao577/go-release-action@v1.20 with: github_token: ${{ secrets.GITHUB_TOKEN }}