Skip to content

Commit

Permalink
Rework packaging step
Browse files Browse the repository at this point in the history
  • Loading branch information
spijet committed May 29, 2020
1 parent e53625e commit 3ac67d2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,16 @@ jobs:
- name: Package
run: |
tar czf ./hashcolor-${{ steps.get_version.outputs.VERSION }}-linux-x86_64.tar.gz \
mkdir -p "./build/hashcolor-${{ steps.get_version.outputs.VERSION }}"
cp -a --target-directory="./build/hashcolor-${{ steps.get_version.outputs.VERSION }}" \
./examples ./hashcolor ./LICENSE ./README.md
cd "./build/hashcolor-${{ steps.get_version.outputs.VERSION }}"
find . -type f -exec sha256sum "{}" + > checksums.lst
cd ..
tar czf "./hashcolor-${{ steps.get_version.outputs.VERSION }}-linux-x86_64.tar.gz" \
"./hashcolor-${{ steps.get_version.outputs.VERSION }}"
sha256sum "./hashcolor-${{ steps.get_version.outputs.VERSION }}-linux-x86_64.tar.gz" > \
"./hashcolor-${{ steps.get_version.outputs.VERSION }}-linux-x86_64.tar.gz.sha256"
- name: Create Release
id: create_release
Expand All @@ -58,6 +66,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hashcolor-${{ steps.get_version.outputs.VERSION }}-linux-x86_64.tar.gz
asset_path: ./build/hashcolor-${{ steps.get_version.outputs.VERSION }}-linux-x86_64.tar.gz
asset_name: hashcolor-${{ steps.get_version.outputs.VERSION }}-linux-x86_64.tar.gz
asset_content_type: application/gzip

0 comments on commit 3ac67d2

Please sign in to comment.