Skip to content

Commit

Permalink
Fix binary uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
samestep committed Sep 24, 2024
1 parent 50f1135 commit d2f0c0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- run: cargo build --release --target ${{ matrix.rust-target }}
- uses: actions/upload-artifact@v4
with:
name: adroit-${{ matrix.target }}
path: target/${{ matrix.target }}/release/adroit${{ matrix.ext }}
name: adroit-${{ matrix.rust-target }}
path: target/${{ matrix.rust-target }}/release/adroit${{ matrix.ext }}
- run: npm ci
- run: mkdir packages/adroit-vscode/bin
- run: cp target/${{ matrix.rust-target }}/release/adroit${{ matrix.ext }} packages/adroit-vscode/bin/adroit${{ matrix.ext }}
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ jobs:
- run: ${{ matrix.install-script }}
- run: rustup target add ${{ matrix.rust-target }}
- run: cargo build --release --target ${{ matrix.rust-target }}
- uses: softprops/action-gh-release@v2
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: target/${{ matrix.rust-target }}/release/adroit${{ matrix.ext }}
upload_url: ${{ github.event.release.upload_url }}
asset_path: target/${{ matrix.rust-target }}/release/adroit${{ matrix.ext }}
asset_name: adroit-${{ matrix.rust-target }}${{ matrix.ext }}
asset_content_type: application/octet-stream
- run: npm ci
- run: mkdir packages/adroit-vscode/bin
- run: cp target/${{ matrix.rust-target }}/release/adroit${{ matrix.ext }} packages/adroit-vscode/bin/adroit${{ matrix.ext }}
Expand Down

0 comments on commit d2f0c0a

Please sign in to comment.