Use gzip files to differentiate versions

This commit is contained in:
Anthony Oteri
2023-09-29 11:04:07 -04:00
parent 452a136b17
commit b12e5e4c7b
+16 -15
View File
@@ -20,6 +20,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
allowUpdates: true
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
@@ -35,8 +36,14 @@ jobs:
matrix:
config:
- os: ubuntu-latest
platform: linux
arch: x86_64
- os: macos-latest
platform: macos
arch: x86_64
- os: windows-latest
platform: win
arch: x86_64
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -52,24 +59,18 @@ jobs:
- name: Run cargo build
run: cargo build --release
- name: Upload release assets
if: matrix.config.os != 'windows-latest'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_name: ${{ matrix.config.os }}/dredge
asset_path: ./target/release/dredge
asset_content_type: application/octet-stream
- name: Create release assets
run: |
tar --directory target/release \
-cf Dredge-${{ github.ref }}-${{ matrix.config.platform }}.${{ matrix.config.arch }}.tar.gz \
dredge*
- name: Upload release assets (Windows)
if: matrix.config.os == 'windows-latest'
- name: Upload release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_name: ${{ matrix.config.os }}/dredge.exe
asset_path: ./target/release/dredge.exe
asset_content_type: application/octet-stream
asset_name: Dredge-${{ github.ref }}-${{ matrix.config.platform }}.${{ matrix.config.arch }}.tar.gz
asset_path: ./target/release/Dredge-${{ github.ref }}-${{ matrix.config.platform }}.${{ matrix.config.arch }}.tar.gz
asset_content_type: application/gzip