Skip to content

Commit

Permalink
fix naming of releases
Browse files Browse the repository at this point in the history
  • Loading branch information
byCrookie committed Feb 11, 2024
1 parent 40dfb84 commit 334dfcd
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ jobs:
- name: Zip
run: |
Compress-Archive -Path ./publish/win-x64/* -DestinationPath ./publish/dm_win_x64_${{ needs.release.outputs.version }}.zip
Compress-Archive -Path ./publish/win-x86/* -DestinationPath ./publish/dm_win_x86_${{ needs.release.outputs.version }}.zip
Compress-Archive -Path ./publish/win-arm64/* -DestinationPath ./publish/dm_win_arm64_${{ needs.release.outputs.version }}.zip
Compress-Archive -Path ./publish/win-x64/* -DestinationPath ./publish/ghb_win_x64_${{ needs.release.outputs.version }}.zip
Compress-Archive -Path ./publish/win-x86/* -DestinationPath ./publish/ghb_win_x86_${{ needs.release.outputs.version }}.zip
Compress-Archive -Path ./publish/win-arm64/* -DestinationPath ./publish/ghb_win_arm64_${{ needs.release.outputs.version }}.zip
- name: Upload Release Assets win-x64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/dm_win_x64_${{ needs.release.outputs.version }}.zip
asset_name: dm_win_x64_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/ghb_win_x64_${{ needs.release.outputs.version }}.zip
asset_name: ghb_win_x64_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

- name: Upload Release Assets win-x86
Expand All @@ -84,8 +84,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/dm_win_x86_${{ needs.release.outputs.version }}.zip
asset_name: dm_win_x86_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/ghb_win_x86_${{ needs.release.outputs.version }}.zip
asset_name: ghb_win_x86_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

- name: Upload Release Assets win-arm64
Expand All @@ -94,8 +94,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/dm_win_arm64_${{ needs.release.outputs.version }}.zip
asset_name: dm_win_arm64_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/ghb_win_arm64_${{ needs.release.outputs.version }}.zip
asset_name: ghb_win_arm64_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

linux:
Expand Down Expand Up @@ -130,11 +130,11 @@ jobs:
- name: Zip
run: |
(cd linux-x64 && zip -r ../linux-x64/dm_linux_x64_${{ needs.release.outputs.version }}.zip .)
(cd linux-musl-x64 && zip -r ../linux-musl-x64/dm_linux_musl_x64_${{ needs.release.outputs.version }}.zip .)
(cd linux-musl-arm64 && zip -r ../linux-musl-arm64/dm_linux_musl_arm64_${{ needs.release.outputs.version }}.zip .)
(cd linux-arm && zip -r ../linux-arm/dm_linux_arm_${{ needs.release.outputs.version }}.zip .)
(cd linux-arm64 && zip -r ../linux-arm64/dm_linux_arm64_${{ needs.release.outputs.version }}.zip .)
(cd linux-x64 && zip -r ../linux-x64/ghb_linux_x64_${{ needs.release.outputs.version }}.zip .)
(cd linux-musl-x64 && zip -r ../linux-musl-x64/ghb_linux_musl_x64_${{ needs.release.outputs.version }}.zip .)
(cd linux-musl-arm64 && zip -r ../linux-musl-arm64/ghb_linux_musl_arm64_${{ needs.release.outputs.version }}.zip .)
(cd linux-arm && zip -r ../linux-arm/ghb_linux_arm_${{ needs.release.outputs.version }}.zip .)
(cd linux-arm64 && zip -r ../linux-arm64/ghb_linux_arm64_${{ needs.release.outputs.version }}.zip .)
working-directory: ./publish/

- name: Upload Release Assets linux-x64
Expand All @@ -143,8 +143,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/linux-x64/dm_linux_x64_${{ needs.release.outputs.version }}.zip
asset_name: dm_linux_x64_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/linux-x64/ghb_linux_x64_${{ needs.release.outputs.version }}.zip
asset_name: ghb_linux_x64_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

- name: Upload Release Assets linux-musl-x64
Expand All @@ -153,8 +153,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/linux-musl-x64/dm_linux_musl_x64_${{ needs.release.outputs.version }}.zip
asset_name: dm_linux_musl_x64_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/linux-musl-x64/ghb_linux_musl_x64_${{ needs.release.outputs.version }}.zip
asset_name: ghb_linux_musl_x64_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

- name: Upload Release Assets linux-musl-arm64
Expand All @@ -163,8 +163,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/linux-musl-arm64/dm_linux_musl_arm64_${{ needs.release.outputs.version }}.zip
asset_name: dm_linux_musl_arm64_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/linux-musl-arm64/ghb_linux_musl_arm64_${{ needs.release.outputs.version }}.zip
asset_name: ghb_linux_musl_arm64_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

- name: Upload Release Assets linux-arm
Expand All @@ -173,8 +173,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/linux-arm/dm_linux_arm_${{ needs.release.outputs.version }}.zip
asset_name: dm_linux_arm_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/linux-arm/ghb_linux_arm_${{ needs.release.outputs.version }}.zip
asset_name: ghb_linux_arm_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

- name: Upload Release Assets linux-arm64
Expand All @@ -183,8 +183,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/linux-arm64/dm_linux_arm64_${{ needs.release.outputs.version }}.zip
asset_name: dm_linux_arm64_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/linux-arm64/ghb_linux_arm64_${{ needs.release.outputs.version }}.zip
asset_name: ghb_linux_arm64_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

macos:
Expand Down Expand Up @@ -216,8 +216,8 @@ jobs:
- name: Zip osx-x64
run: |
(cd osx-x64 && zip -r ../osx-x64/dm_osx_x64_${{ needs.release.outputs.version }}.zip .)
(cd osx-arm64 && zip -r ../osx-arm64/dm_osx_arm64_${{ needs.release.outputs.version }}.zip .)
(cd osx-x64 && zip -r ../osx-x64/ghb_osx_x64_${{ needs.release.outputs.version }}.zip .)
(cd osx-arm64 && zip -r ../osx-arm64/ghb_osx_arm64_${{ needs.release.outputs.version }}.zip .)
working-directory: ./publish/

- name: Upload Release Assets osx-x64
Expand All @@ -226,8 +226,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/osx-x64/dm_osx_x64_${{ needs.release.outputs.version }}.zip
asset_name: dm_osx_x64_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/osx-x64/ghb_osx_x64_${{ needs.release.outputs.version }}.zip
asset_name: ghb_osx_x64_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

- name: Upload Release Assets osx-arm64
Expand All @@ -236,6 +236,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./publish/osx-arm64/dm_osx_arm64_${{ needs.release.outputs.version }}.zip
asset_name: dm_osx_arm64_${{ needs.release.outputs.version }}.zip
asset_path: ./publish/osx-arm64/ghb_osx_arm64_${{ needs.release.outputs.version }}.zip
asset_name: ghb_osx_arm64_${{ needs.release.outputs.version }}.zip
asset_content_type: application/zip

0 comments on commit 334dfcd

Please sign in to comment.