Skip to content

Commit

Permalink
Fixing artifiacts in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien committed Aug 8, 2024
1 parent 202de00 commit 08045d0
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,14 @@ jobs:
run: cargo test --verbose
- name: release
run: cargo build --release

- name: upload windows
if: matrix.os == 'windows-latest'

- name: 'Tar files'
run: tar -cvf ${{ matrix.os }}-${{ env.FILE_NAME }}.tar ./target/release
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ env.FILE_NAME }}
path: ./target/release/${{ env.FILE_NAME }}.exe
compression-level: 0
- uses: actions/upload-artifact@v4
if: matrix.os != 'windows-latest'
with:
name: ${{ matrix.os }}-flora_parsing
path: ./target/release/${{ env.FILE_NAME }}
compression-level: 0
path: ${{ matrix.os }}-${{ env.FILE_NAME }}.tar

release:
needs: build
Expand All @@ -50,4 +44,4 @@ jobs:
uses: actions/download-artifact@v4
- uses: ncipollo/release-action@v1
with:
artifacts: './ubuntu-latest-flora_parsing/ubuntu-latest-flora_parsing,./macOS-latest-flora_parsing/macOS-latest-flora_parsing,./windows-latest-flora_parsing/windows-latest-flora_parsing.exe'
artifacts: './ubuntu-latest-flora_parsing/ubuntu-latest-flora_parsing.tar,./macOS-latest-flora_parsing/macOS-latest-flora_parsing.tar,./windows-latest-flora_parsing/windows-latest-flora_parsing.tar'

0 comments on commit 08045d0

Please sign in to comment.