Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix file name for release workflow #58

Merged
merged 2 commits into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,22 @@ jobs:
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
bin: am
hatchan marked this conversation as resolved.
Show resolved Hide resolved
file-name: am-linux-x86_64
- name: linux_aarch64
os: ubuntu-latest
target: aarch64-unknown-linux-gnu
bin: am
file-name: am-linux-aarch64
- name: macos_x86_64
os: macOS-latest
target: x86_64-apple-darwin
bin: am
file-name: am-macos-x86_64
- name: macos_aarch64
os: macOS-latest
target: aarch64-apple-darwin
bin: am
file-name: am-macos-aarch64
runs-on: ${{ matrix.platform.os }}
steps:
- name: checkout
Expand All @@ -55,8 +59,8 @@ jobs:
- name: prepare binary
run: |
mkdir -p /tmp/artifact/
cp "target/${{ matrix.platform.target }}/release/am" "/tmp/artifact/am-${{ matrix.platform.bin }}-${{ matrix.platform.target }}"
cp "target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}" "/tmp/artifact/${{ matrix.platform.file-name }}"
- name: attach artifact to release
uses: softprops/action-gh-release@v1
with:
files: "/tmp/artifact/am-${{ matrix.platform.bin }}-${{ matrix.platform.target }}"
files: "/tmp/artifact/${{ matrix.platform.file-name }}"