diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67004a3..aa5952a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: runs-on: ubuntu-latest needs: release-drafter permissions: - # For actions/download-artifact + # For $ gh run download actions: read # For GoReleaser contents: write @@ -47,26 +47,10 @@ jobs: with: go-version: stable - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: php-matrix_linux_arm64 - path: out/linux_arm64 - run-id: ${{ inputs.run_id }} - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: php-matrix_linux_amd64 - path: out/linux_amd64 - run-id: ${{ inputs.run_id }} - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: php-matrix_darwin_arm64 - path: out/darwin_arm64 - run-id: ${{ inputs.run_id }} - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: php-matrix_darwin_amd64 - path: out/darwin_amd64 - run-id: ${{ inputs.run_id }} + - run: gh run download "${RUN_ID}" --dir out --pattern 'php-matrix_*' + env: + RUN_ID: ${{ inputs.run_id }} + GH_TOKEN: ${{ github.token }} - uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 id: app-token diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1d32092..5a2c9d6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -16,7 +16,7 @@ builds: hooks: # Overwrite the binary with the prebuilt one, which is what we actually want to release. post: - - cmd: mv "out/{{ .Os }}_{{ .Arch }}/{{ .Name }}" "{{ .Path }}" + - cmd: mv "out/{{ .Name }}_{{ .Os }}_{{ .Arch }}/{{ .Name }}" "{{ .Path }}" nfpms: - vendor: Typist Tech Limited