Skip to content

Commit ba082fc

Browse files
committed
Remove intermediate directory created during deploy
1 parent 5467693 commit ba082fc

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
toolchain: stable
2525
override: true
2626

27-
- name: Build sifis-generate
27+
- name: Build weighted-code-coverage
2828
run: |
2929
cargo build --release
3030
@@ -96,15 +96,11 @@ jobs:
9696
- name: Build package
9797
id: package
9898
run: |
99-
ARCHIVE_TARGET=${{ matrix.target }}
100-
ARCHIVE_NAME="$BINARY-${{ steps.tagName.outputs.tag }}-$ARCHIVE_TARGET"
101-
ARCHIVE_FILE="${ARCHIVE_NAME}.tar.gz"
102-
mkdir "/tmp/${ARCHIVE_NAME}"
103-
cp target/${{ matrix.target }}/release/$BINARY \
104-
/tmp/${ARCHIVE_NAME}
105-
tar -czf ${PWD}/${ARCHIVE_FILE} -C /tmp/ ${ARCHIVE_NAME}
106-
echo ::set-output "name=file::${ARCHIVE_FILE}"
107-
echo ::set-output "name=name::${ARCHIVE_NAME}.tar.gz"
99+
TAR_FILE=$BINARY-${{ steps.tagName.outputs.tag }}-${{ matrix.target }}
100+
cd target/${{ matrix.target }}/release
101+
tar -czvf $GITHUB_WORKSPACE/$TAR_FILE.tar.gz $BINARY
102+
echo ::set-output "name=file::${TAR_FILE}.tar.gz "
103+
echo ::set-output "name=name::${TAR_FILE}"
108104
109105
- name: Upload artifacts
110106
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)