Skip to content

Commit

Permalink
ci(go): update release asset upload step
Browse files Browse the repository at this point in the history
- Uncomment and update the Upload Release Asset step
- Use the correct GITHUB_TOKEN secret
- Remove unnecessary commented lines
- Add missing indentation for job steps
  • Loading branch information
wellcomez committed Oct 31, 2024
1 parent d1a833d commit 7245709
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit 7245709

Please sign in to comment.