Skip to content

Commit

Permalink
Update CD. Enable auto publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanugoel committed Jun 18, 2021
1 parent a83b0af commit a02f033
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
cd target/${{ matrix.job.target }}/release
####### reduce binary size by removing debug symbols #######
BINARY_NAME=sup${{ matrix.job.binary-postfix }}
BINARY_NAME=ssup${{ matrix.job.binary-postfix }}
if [[ ${{ matrix.job.target }} == aarch64-unknown-linux-gnu ]]; then
GCC_PREFIX="aarch64-linux-gnu-"
else
Expand All @@ -98,7 +98,7 @@ jobs:
"$GCC_PREFIX"strip $BINARY_NAME
########## create tar.gz ##########
RELEASE_NAME=sup-${GITHUB_REF/refs\/tags\//}-${{ matrix.job.os-name }}-${{ matrix.job.architecture }}
RELEASE_NAME=ssup-${GITHUB_REF/refs\/tags\//}-${{ matrix.job.os-name }}-${{ matrix.job.architecture }}
tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME
########## create sha256 ##########
Expand All @@ -111,14 +111,13 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
target/${{ matrix.job.target }}/release/sup-*.tar.gz
target/${{ matrix.job.target }}/release/sup-*.sha256
target/${{ matrix.job.target }}/release/ssup-*.tar.gz
target/${{ matrix.job.target }}/release/ssup-*.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-cargo:
name: Publishing to Cargo
if: ${{ false }} # Disable for now
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand Down

0 comments on commit a02f033

Please sign in to comment.