From fda70d6651eb89e02fa6aa8a3f792a4ab352f389 Mon Sep 17 00:00:00 2001 From: indes Date: Sun, 13 Sep 2020 19:23:35 +0800 Subject: [PATCH] chore: update release action --- .github/workflows/release.yml | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49d7f3d5..a0d6c6c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,28 +30,4 @@ jobs: goarch: ${{ matrix.goarch }} extra_files: config.yml.sample README.md build_flags: -v - ldflags: -X 'github.com/indes/flowerss-bot/config.commit=`git rev-parse --short HEAD`' -X 'github.com/indes/flowerss-bot/config.date=`${{ env.BUILD_TIME }}`' -X 'github.com/indes/flowerss-bot/config.version=`${{ env.APP_VERSION }}`' - - darwin-releases-matrix: - name: Release Matrix - runs-on: macos-latest - strategy: - matrix: - goos: [ darwin ] - goarch: [ amd64 ] - steps: - - uses: actions/checkout@v2 - - - name: Set APP_VERSION env - run: echo ::set-env name=APP_VERSION::$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) - - name: Set BUILD_TIME env - run: echo ::set-env name=BUILD_TIME::$(date) - - - uses: wangyoucao577/go-release-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - goos: ${{ matrix.goos }} - goarch: ${{ matrix.goarch }} - extra_files: config.yml.sample README.md - build_flags: -v - ldflags: -X 'github.com/indes/flowerss-bot/config.commit=`git rev-parse --short HEAD`' -X 'github.com/indes/flowerss-bot/config.date=`${{ env.BUILD_TIME }}`' -X 'github.com/indes/flowerss-bot/config.version=`${{ env.APP_VERSION }}`' + ldflags: -X 'github.com/indes/flowerss-bot/config.commit=${{ github.sha }}' -X 'github.com/indes/flowerss-bot/config.date=${{ env.BUILD_TIME }}' -X 'github.com/indes/flowerss-bot/config.version=${{ env.APP_VERSION }}' \ No newline at end of file