Skip to content

Commit

Permalink
fix upload step
Browse files Browse the repository at this point in the history
  • Loading branch information
tnyo43 committed May 12, 2024
1 parent 15231d2 commit 7fe2c2b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,18 @@ jobs:
- uses: Swatinem/rust-cache@v1
- name: Build release version
run: cargo build --verbose --release --target=${{ matrix.target }}

- name: Copy CLI binary
run: |
mkdir dist
cp target/${{ matrix.target }}/release/main ./dist/main-${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.target }}
path: target/${{ matrix.target }}/release/main
name: main-${{ matrix.target }}
path: ./dist/main-*
if-no-files-found: error

release:
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 7fe2c2b

Please sign in to comment.