mirror of
https://github.com/anthonyoteri/dredge.git
synced 2026-06-05 15:26:53 -04:00
Use gzip files to differentiate versions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user