mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-02-16 02:30:44 +00:00
Update release-build.yml
This commit is contained in:
32
.github/workflows/release-build.yml
vendored
32
.github/workflows/release-build.yml
vendored
@@ -28,6 +28,7 @@ jobs:
|
|||||||
body: |
|
body: |
|
||||||
Files included in this release:
|
Files included in this release:
|
||||||
- `BeamMP-Launcher.exe` windows build
|
- `BeamMP-Launcher.exe` windows build
|
||||||
|
- `BeamMP-Launcher` linux build
|
||||||
|
|
||||||
upload-release-files-windows:
|
upload-release-files-windows:
|
||||||
name: Upload Windows Release Files
|
name: Upload Windows Release Files
|
||||||
@@ -70,3 +71,34 @@ jobs:
|
|||||||
asset_path: ${{github.workspace}}/build-windows/Release/BeamMP-Launcher.exe
|
asset_path: ${{github.workspace}}/build-windows/Release/BeamMP-Launcher.exe
|
||||||
asset_name: BeamMP-Launcher.exe
|
asset_name: BeamMP-Launcher.exe
|
||||||
asset_content_type: application/vnd.microsoft.portable-executable
|
asset_content_type: application/vnd.microsoft.portable-executable
|
||||||
|
|
||||||
|
upload-release-files-linux:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
|
||||||
|
- name: Create Build Environment
|
||||||
|
run: cmake -E make_directory ${{github.workspace}}/build-linux
|
||||||
|
|
||||||
|
- name: Configure CMake
|
||||||
|
shell: bash
|
||||||
|
working-directory: ${{github.workspace}}/build-linux
|
||||||
|
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{github.workspace}}/build-linux
|
||||||
|
shell: bash
|
||||||
|
run: cmake --build . --config $BUILD_TYPE
|
||||||
|
|
||||||
|
- name: Upload Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ needs.create-release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||||
|
asset_path: ${{github.workspace}}/build-linux/BeamMP-Launcher
|
||||||
|
asset_name: BeamMP-Launcher
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|||||||
Reference in New Issue
Block a user