Skip to content

Commit

Permalink
add release tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Feb 22, 2024
1 parent 3213704 commit 5ca3923
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,32 @@ jobs:
echo "PKG_WHEPFROM_NAME=whepfrom-${PKG_BUILDNAME}" >> $GITHUB_ENV
echo "PKG_WHIPINTO_NAME=whipinto-${PKG_BUILDNAME}" >> $GITHUB_ENV
- name: Create tarball
shell: bash
run: |
TAR_SUFFIX=".tar.gz" ; case ${{ matrix.job.target }} in *-pc-windows-*) TAR_SUFFIX=".zip" ;; esac;
TAR_BASENAME=live777-${{ env.VERSION }}-${{ matrix.job.target }}
TAR_NAME=${TAR_BASENAME}${TAR_SUFFIX}
ARCHIVE_DIR="${TAR_BASENAME}/"
mkdir -p "${ARCHIVE_DIR}"
cp "${{ env.BUILD_PATH }}/live777${{ env.EXE_SUFFIX }}" "$ARCHIVE_DIR"
cp "README.md" "LICENSE" "config-dist.toml" "live777.service" "$ARCHIVE_DIR"
# base compressed package
case ${{ matrix.job.target }} in
*-pc-windows-*) 7z -y a "${TAR_NAME}" "${TAR_BASENAME}"/* | tail -2 ;;
*) tar czf "${TAR_NAME}" "${TAR_BASENAME}"/* ;;
esac;
# Let subsequent steps know where to find the compressed package
echo "TAR_LIVE777_NAME=${TAR_NAME}" >> $GITHUB_ENV
- name: Artifact Upload
uses: actions/upload-artifact@v3
with:
name: ${{ env.PKG_LIVE777_NAME }}
path: ${{ env.BUILD_PATH }}/live777${{ env.EXE_SUFFIX }}
path: ${TAR_NAME}

- name: Artifact Upload Whepfrom
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 5ca3923

Please sign in to comment.