From 72457094fb769804e8c1d5ddbbd812ff0c8d1d7f Mon Sep 17 00:00:00 2001 From: wellcomez Date: Fri, 1 Nov 2024 04:01:04 +0800 Subject: [PATCH] ci(go): update release asset upload step - Uncomment and update the Upload Release Asset step - Use the correct GITHUB_TOKEN secret - Remove unnecessary commented lines - Add missing indentation for job steps --- .github/workflows/go.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ee060241..ef65e98c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -74,26 +74,26 @@ jobs: prerelease: false # Upload the archive - # - name: Upload Release Asset - # if: startsWith(github.ref, 'refs/tags/') - # uses: actions/upload-release-asset@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: ./${{ matrix.output }} - # asset_name: ${{ matrix.output }} - # asset_content_type: application/octet-stream - - - - name: Upload Linux Artifact + - name: Upload Release Asset + if: startsWith(github.ref, 'refs/tags/') uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.RTOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./${{ matrix.output }} asset_name: ${{ matrix.output }} - # asset_path: ./lspvi-amd64-linux - # asset_name: lspvi-amd64-linux - asset_content_type: application/octet-stream \ No newline at end of file + asset_content_type: application/octet-stream + + + # - name: Upload Linux Artifact + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.RTOKEN }} + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: ./${{ matrix.output }} + # asset_name: ${{ matrix.output }} + # # asset_path: ./lspvi-amd64-linux + # # asset_name: lspvi-amd64-linux + # asset_content_type: application/octet-stream \ No newline at end of file