Skip to content

Commit

Permalink
Update packaging of assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Piszmog committed Sep 27, 2022
1 parent f2dc111 commit 51c8ae7
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,27 +93,21 @@ jobs:
- name: Build release binary
run: ${{ env.CARGO }} build --release ${{ env.TARGET_FLAGS }}

# - name: Build archive
# shell: bash
# run: |
# outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")"
# staging="jiggle-${{ github.event.inputs.version }}-${{ matrix.target }}"
# mkdir -p "$staging"/{complete,doc}
# cp {README.md,COPYING,UNLICENSE,LICENSE-MIT} "$staging/"
# cp {CHANGELOG.md,FAQ.md,GUIDE.md} "$staging/doc/"
# cp "$outdir"/{jiggle.bash,jiggle.fish,_jiggle.ps1} "$staging/complete/"
# cp complete/_jiggle "$staging/complete/"
# if [ "${{ matrix.os }}" = "windows-2019" ]; then
# cp "target/${{ matrix.target }}/release/jiggle.exe" "$staging/"
# 7z a "$staging.zip" "$staging"
# echo "ASSET=$staging.zip" >> $GITHUB_ENV
# else
# # The man page is only generated on Unix systems. ¯\_(ツ)_/¯
# cp "$outdir"/jiggle.1 "$staging/doc/"
# cp "target/${{ matrix.target }}/release/jiggle" "$staging/"
# tar czf "$staging.tar.gz" "$staging"
# echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
# fi
- name: Build archive
shell: bash
run: |
staging="jiggle-${{ github.event.inputs.version }}-${{ matrix.target }}"
mkdir -p "$staging"/{complete,doc}
cp {README.md,LICENSE} "$staging/"
if [ "${{ matrix.os }}" = "windows-2019" ]; then
cp "target/${{ matrix.target }}/release/jiggle.exe" "$staging/"
7z a "$staging.zip" "$staging"
echo "ASSET=$staging.zip" >> $GITHUB_ENV
else
cp "target/${{ matrix.target }}/release/jiggle" "$staging/"
tar czf "$staging.tar.gz" "$staging"
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
fi
- name: Upload release archive
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 51c8ae7

Please sign in to comment.