Skip to content

Commit

Permalink
Fix directory structure for release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhickman committed Jun 26, 2023
1 parent 39cfff1 commit 9173de2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,30 @@ jobs:
run: cargo build --release

- run: |
chmod +x target/release/lanquetta
tar czf lanquetta-${{ matrix.target }}.tar.gz target/release/lanquetta
chmod +x lanquetta
tar czf lanquetta-${{ matrix.target }}.tar.gz lanquetta
working-directory: target/release
if: matrix.target == 'x86_64-unknown-linux-gnu'
- run: |
7z a lanquetta-${{ matrix.target }}.zip target/release/lanquetta.exe
7z a lanquetta-${{ matrix.target }}.zip lanquetta.exe
working-directory: target/release
if: matrix.target == 'x86_64-pc-windows-msvc'
- name: Upload binary
uses: actions/upload-artifact@v3
if: matrix.target == 'x86_64-unknown-linux-gnu'
with:
name: lanquetta-${{ matrix.target }}
path: lanquetta-${{ matrix.target }}.tar.gz
path: target/release/lanquetta-${{ matrix.target }}.tar.gz
retention-days: 3

- name: Upload binary
uses: actions/upload-artifact@v3
if: matrix.target == 'x86_64-pc-windows-msvc'
with:
name: lanquetta-${{ matrix.target }}
path: lanquetta-${{ matrix.target }}.zip
path: target/release/lanquetta-${{ matrix.target }}.zip
retention-days: 3

release:
Expand Down

0 comments on commit 9173de2

Please sign in to comment.