Skip to content

Commit

Permalink
.github/workflows/release.yml separate archives for windows and other
Browse files Browse the repository at this point in the history
  • Loading branch information
fb929 committed Aug 4, 2023
1 parent 15ddf55 commit 250fc56
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@ jobs:
echo "$GITHUB_REF_NAME" | sed 's|^[a-zA-Z]\+|RELEASE_VERSION=|' >> $GITHUB_OUTPUT
# create asset {{
- name: create archives
- name: create zip archive
if: matrix.os == 'windows'
run: |
zip --junk-paths ${{ github.event.repository.name }}-${{ steps.release-version.outputs.RELEASE_VERSION }}.${{ matrix.os }}-${{ matrix.arch }}.zip bin/*
- name: create tar archive
if: matrix.os != 'windows'
run: |
tar \
--create \
--gzip \
Expand Down Expand Up @@ -132,6 +136,7 @@ jobs:
# upload-release-asset {{
- name: upload-release-asset zip
if: matrix.os == 'windows'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -142,6 +147,7 @@ jobs:
asset_content_type: application/zip

- name: upload-release-asset tgz
if: matrix.os != 'windows'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 250fc56

Please sign in to comment.