Skip to content

Commit

Permalink
Remove intermediate directory created during deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 committed Apr 19, 2022
1 parent 5467693 commit ba082fc
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
toolchain: stable
override: true

- name: Build sifis-generate
- name: Build weighted-code-coverage
run: |
cargo build --release
Expand Down Expand Up @@ -96,15 +96,11 @@ jobs:
- name: Build package
id: package
run: |
ARCHIVE_TARGET=${{ matrix.target }}
ARCHIVE_NAME="$BINARY-${{ steps.tagName.outputs.tag }}-$ARCHIVE_TARGET"
ARCHIVE_FILE="${ARCHIVE_NAME}.tar.gz"
mkdir "/tmp/${ARCHIVE_NAME}"
cp target/${{ matrix.target }}/release/$BINARY \
/tmp/${ARCHIVE_NAME}
tar -czf ${PWD}/${ARCHIVE_FILE} -C /tmp/ ${ARCHIVE_NAME}
echo ::set-output "name=file::${ARCHIVE_FILE}"
echo ::set-output "name=name::${ARCHIVE_NAME}.tar.gz"
TAR_FILE=$BINARY-${{ steps.tagName.outputs.tag }}-${{ matrix.target }}
cd target/${{ matrix.target }}/release
tar -czvf $GITHUB_WORKSPACE/$TAR_FILE.tar.gz $BINARY
echo ::set-output "name=file::${TAR_FILE}.tar.gz "
echo ::set-output "name=name::${TAR_FILE}"
- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit ba082fc

Please sign in to comment.