From 3bead632a6b201c1dde36378debbbcde84240f60 Mon Sep 17 00:00:00 2001 From: moond4rk Date: Sun, 8 Nov 2020 02:13:51 +0800 Subject: [PATCH] remove set-env variable in github action Close #38 --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ecc3bca..cd838a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,9 +40,12 @@ jobs: - if: matrix.os == 'ubuntu-latest' run: sudo apt-get update && sudo apt-get install -y gcc-multilib - if: matrix.arch == '386' - run: echo "::set-env name=RELEASE::hack-browser-data-${{ github.event.release.tag_name }}-${{ matrix.releaseos}}-32bit" + run: echo "RELEASE=hack-browser-data-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-32bit" >> $GITHUB_ENV - if: matrix.arch == 'amd64' - run: echo "::set-env name=RELEASE::hack-browser-data-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-64bit" + run: echo "RELEASE=hack-browser-data-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-64bit" >> $GITHUB_ENV + - if: matrix.os == 'windows-latest' + shell: powershell + run: echo "RELEASE=hack-browser-data-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-64bit" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - uses: actions/checkout@v2 - name: Build ${{ matrix.goos }}/${{ matrix.arch }} run: go build -ldflags '-w -s' -o ${{ matrix.bin }}