Skip to content

Commit

Permalink
updating release so names don't conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
jooaf committed Jul 27, 2024
1 parent 2ae96df commit 90e7b10
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
contents: write
outputs:
release_id: ${{ steps.create_release.outputs.id }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -48,6 +49,7 @@ jobs:
- os: macos-latest
artifact_name: thoth-cli
asset_name: thoth-cli-macos-x86_64
target: x86_64-apple-darwin
- os: macos-latest
artifact_name: thoth-cli
asset_name: thoth-cli-macos-arm64
Expand Down Expand Up @@ -81,12 +83,14 @@ jobs:
shell: bash

- name: Upload Release Asset
uses: softprops/action-gh-release@v1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ matrix.target != '' && format('./target/{0}/release/{1}', matrix.target, matrix.artifact_name) || format('./target/release/{0}', matrix.artifact_name) }}
tag_name: v${{ github.event.inputs.version }}
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ${{ matrix.target != '' && format('./target/{0}/release/{1}', matrix.target, matrix.artifact_name) || format('./target/release/{0}', matrix.artifact_name) }}
asset_name: ${{ matrix.asset_name }}
asset_content_type: application/octet-stream

publish_to_cargo:
name: Publish to Cargo
Expand Down

0 comments on commit 90e7b10

Please sign in to comment.