From faee5a01dffa054a0bf8b8c52f2e56865ef0bc71 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 15 Feb 2024 15:45:02 +0100 Subject: [PATCH] ci: Update release asset paths and names This commit updates the paths and names of the release assets for different platforms. The macOS client release asset is now located at "./artifacts/client-macos-latest/client" and named "client-macos-latest.zip". The Ubuntu client release asset is now located at "./artifacts/client-ubuntu-latest/client" and named "client-ubuntu-latest.zip". Additionally, the Windows client release asset is now located at "./artifacts/client-windows-latest/client.exe" and named "client-windows-latest.zip". Similarly, the macOS server release asset is now located at "./artifacts/server-macos-latest/server" and named "server-macos-latest.zip", the Ubuntu server release asset is now located at "./artifacts/server-ubuntu-latest/server" and named "server-ubuntu-latest.zip", and the Windows server release asset is now located at "./artifacts/server-windows-latest/server.exe" and named "server-windows-latest.zip". --- .github/workflows/rust.yml | 53 ++++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 716c902..c472577 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -51,7 +51,7 @@ jobs: - name: Download all artifacts uses: actions/download-artifact@v3 with: - path: artifacts + path: artifacts/ - name: Create Release id: create_release uses: actions/create-release@v1 @@ -62,21 +62,58 @@ jobs: release_name: Release ${{ github.ref_name }} draft: false prerelease: false - - name: Upload Release Asset + - name: Upload macOS Client Release Asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./artifacts/client-${{ matrix.os }} - asset_name: client-${{ matrix.os }}.zip + asset_path: ./artifacts/client-macos-latest/client + asset_name: client-macos-latest.zip asset_content_type: application/zip - - name: Upload Release Asset + - name: Upload Ubuntu Client Release Asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./artifacts/server-${{ matrix.os }} - asset_name: server-${{ matrix.os }}.zip - asset_content_type: application/zip \ No newline at end of file + asset_path: ./artifacts/client-ubuntu-latest/client + asset_name: client-ubuntu-latest.zip + asset_content_type: application/zip + - name: Upload Windows Client Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./artifacts/client-windows-latest/client.exe + asset_name: client-windows-latest.zip + asset_content_type: application/zip + - name: Upload macOS Server Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./artifacts/server-macos-latest/server + asset_name: server-macos-latest.zip + asset_content_type: application/zip + - name: Upload Ubuntu Server Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./artifacts/server-ubuntu-latest/server + asset_name: server-ubuntu-latest.zip + asset_content_type: application/zip + - name: Upload Windows Server Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./artifacts/server-windows-latest/server.exe + asset_name: server-windows-latest.zip + asset_content_type: application/zip + \ No newline at end of file