Skip to content

Commit

Permalink
ci: Update release asset paths and names
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
jabibamman committed Feb 15, 2024
1 parent aae3015 commit faee5a0
Showing 1 changed file with 45 additions and 8 deletions.
53 changes: 45 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
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

0 comments on commit faee5a0

Please sign in to comment.