Skip to content

Commit

Permalink
Merge pull request #43 from okaneco/cd-fix
Browse files Browse the repository at this point in the history
Change hyphen to underscore in CD action
  • Loading branch information
okaneco authored Mar 30, 2021
2 parents f45b0ee + 7abda75 commit 4097460
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
run: |
cd target/${{ matrix.platform.target }}/release
####### reduce binary size by removing debug symbols #######
BINARY_NAME=kmeans-colors${{ matrix.platform.binary-postfix }}
BINARY_NAME=kmeans_colors${{ matrix.platform.binary-postfix }}
if [[ ${{ matrix.platform.target }} == aarch64-unknown-linux-gnu ]]; then
GCC_PREFIX="aarch64-linux-gnu-"
else
Expand All @@ -86,7 +86,7 @@ jobs:
fi
########## create tar.gz ##########
RELEASE_NAME=kmeans-colors-${GITHUB_REF/refs\/tags\//}-${{ matrix.platform.os-name }}-${{ matrix.platform.architecture }}
RELEASE_NAME=kmeans_colors-${GITHUB_REF/refs\/tags\//}-${{ matrix.platform.os-name }}-${{ matrix.platform.architecture }}
tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME
########## create sha256 ##########
if [[ ${{ runner.os }} == 'Windows' ]]; then
Expand All @@ -99,7 +99,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
target/${{ matrix.platform.target }}/release/kmeans-colors-*.tar.gz
target/${{ matrix.platform.target }}/release/kmeans-colors-*.sha256
target/${{ matrix.platform.target }}/release/kmeans_colors-*.tar.gz
target/${{ matrix.platform.target }}/release/kmeans_colors-*.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4097460

Please sign in to comment.