fix exec path and cleanup loader bundle #46
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| # build-windows-bootstrap: | |
| # runs-on: windows-2022 | |
| # steps: | |
| # - uses: actions/checkout@v3 | |
| # with: | |
| # submodules: false | |
| # - name: Setup .NET | |
| # uses: actions/setup-dotnet@v3 | |
| # with: | |
| # dotnet-version: 10.0.x | |
| # - name: Publish bootstrap | |
| # working-directory: SS14.Launcher.Bootstrap | |
| # run: dotnet publish -r win-x64 | |
| # - uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: "bootstrap" | |
| # retention-days: 1 | |
| # path: "SS14.Launcher.Bootstrap/bin/Release/net10.0-windows/win-x64/publish/SimpleStation14 Launcher.exe" | |
| build: | |
| runs-on: ubuntu-latest | |
| # needs: build-windows-bootstrap | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| with: | |
| submodules: 'recursive' | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Create build (macOS & Linux) | |
| run: ./publish.py osx # linux | |
| - name: Debug show files | |
| run: ls -R bin/** | |
| # - name: Download Windows Bootstrap | |
| # uses: actions/download-artifact@v5 | |
| # with: | |
| # name: "bootstrap" | |
| # - name: Create build (Windows) | |
| # run: ./publish.py windows --x64-only | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: Release ${{ github.ref }} | |
| draft: false | |
| prerelease: ${{ contains(github.ref, 'pre') }} | |
| # # Upload Linux | |
| # - name: Upload 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: ./SS14.Launcher_Linux.zip | |
| # asset_name: SS14.Launcher_Linux.zip | |
| # asset_content_type: application/zip | |
| # # Upload Windows | |
| # - name: Upload 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: ./SS14.Launcher_Windows.zip | |
| # asset_name: SS14.Launcher_Windows.zip | |
| # asset_content_type: application/zip | |
| # Upload macOS | |
| - name: Upload 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: ./SS14.Launcher_macOS.zip | |
| asset_name: SS14.Launcher_macOS.zip | |
| asset_content_type: application/zip |