81b11c88eca8f625b83642837781e605f812aeb9

Author
Maxime Borges <maxime@yaak.ai>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Apply suggestions

Diff

 1diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
 2index 35191847b30ad87c00fc0bdfda5fcc9d1e1187a8..e2220cd04563413c153c5445d114b2e11fb5530d 100644
 3--- a/.github/workflows/release.yml
 4+++ b/.github/workflows/release.yml
 5@@ -31,26 +31,21 @@ jobs:
 6 
 7     steps:
 8     - name: Checkout code
 9-      uses: actions/checkout@v2
10+      uses: actions/checkout@v4
11 
12     - name: Set up Go
13-      uses: actions/setup-go@v2
14+      uses: actions/setup-go@v5
15       with:
16-        go-version: '1.23'
17+        go-version-file: "go.mod"
18 
19     - name: Build
20       env:
21         GOOS: ${{ matrix.goos }}
22         GOARCH: ${{ matrix.goarch }}
23       run: |
24-        go build -o logfmt-${{ matrix.goos }}-${{ matrix.goarch }}
25+        go build -o logfmt-${{ matrix.goos }}-${{ matrix.goarch }}-${{ github.ref_name }}
26 
27     - name: Upload Release Asset
28-      uses: actions/upload-release-asset@v1
29-      env:
30-        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+      uses: softprops/action-gh-release@v2
32       with:
33-        upload_url: ${{ needs.create_release.outputs.upload_url }}
34-        asset_path: ./logfmt-${{ matrix.goos }}-${{ matrix.goarch }}
35-        asset_name: logfmt-${{ matrix.goos }}-${{ matrix.goarch }}-${{ github.ref_name }}
36-        asset_content_type: application/octet-stream
37+        files: ./logfmt-${{ matrix.goos }}-${{ matrix.goarch }}-${{ github.ref_name }}