diff options
author | sjlleo <[email protected]> | 2021-11-09 10:28:52 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-09 10:28:52 +0800 |
commit | b26a802fc3d1f27e53c877cb3c6acc2cd63b6d45 (patch) | |
tree | 7d3ddf01ad5b91355ec0833cf4f2c897d6606736 | |
parent | fe620a99ce0fd5316917bedb97fc3a696f3bb857 (diff) |
Update go.yml
-rw-r--r-- | .github/workflows/go.yml | 112 |
1 files changed, 2 insertions, 110 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 69c1984..16a710c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,110 +1,2 @@ -name: Go Release - -on: - release: - types: [published] - watch: - types: started - -jobs: - - release_macos_ubunty: - if: github.event.repository.owner.id == github.event.sender.id - name: Build with go ${{ matrix.go_version }} on ${{ matrix.os }} and upload - runs-on: ${{ matrix.os }} - env: - TZ: Asia/Shanghai - - strategy: - matrix: - go_version: [1.17.1] - os: [ubuntu-latest, macos-latest] - - steps: - - - name: Set up Go ${{ matrix.go_version }} - uses: actions/setup-go@v1 - with: - go-version: ${{ matrix.go_version }} - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: Build - run: | - go build -v -o netflix-verify . - - name: Gzip - run: | - mkdir netflix-${{ matrix.os }} - cp netflix-all-verify netflix-${{ matrix.os }} - tar -czvf netflix-${{ matrix.os }}.tar.gz netflix-${{ matrix.os }} - - name: Upload assets - uses: actions/upload-artifact@v2 - with: - name: netflix - path: netflix-${{ matrix.os }}.tar.gz - - name: Get current date - id: date - run: echo "::set-output name=today::$(date +'%Y-%m-%d')" - - - name: Upload release asset - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: netflix-${{ matrix.os }}.tar.gz - tag: ${{ steps.date.outputs.today }} - file_glob: true - overwrite: true - release_name: ${{ steps.date.outputs.today }} - - - release_windows-latest: - if: github.event.repository.owner.id == github.event.sender.id - name: Build with go ${{ matrix.go_version }} on ${{ matrix.os }} and upload - runs-on: ${{ matrix.os }} - env: - TZ: Asia/Shanghai - - strategy: - matrix: - go_version: [1.17.1] - os: [windows-latest] - - steps: - - - name: Set up Go ${{ matrix.go_version }} - uses: actions/setup-go@v1 - with: - go-version: ${{ matrix.go_version }} - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 - - - name: Build - run: | - go build -v -o netflix-verify.exe . - - name: Gzip - run: | - mkdir netflix-${{ matrix.os }} - cp netflix-all-verify.exe netflix-${{ matrix.os }} - tar -czvf netflix-${{ matrix.os }}.tar.gz netflix-${{ matrix.os }} - - name: Upload assets - uses: actions/upload-artifact@v2 - with: - name: netflix - path: netflix-${{ matrix.os }}.tar.gz - - name: Get current date - id: date - run: echo "::set-output name=today::$(date +'%Y-%m-%d')" - - - name: Upload release asset - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: netflix-${{ matrix.os }}.tar.gz - tag: ${{ steps.date.outputs.today }} - file_glob: true - overwrite: true - release_name: ${{ steps.date.outputs.today }} +- name: Go Release Binaries + uses: wangyoucao577/[email protected] |