Merge branch 'UnderminersTeam:master' into master #44
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 continuous release of UndertaleModTool | |
| on: | |
| push: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| build_gui: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest] | |
| configuration: [Debug] | |
| bundled: [true] | |
| singlefile: [true, false] | |
| include: | |
| - singlefile: true | |
| filename: UndertaleModTool_nightly-Windows-SingleFile | |
| - singlefile: false | |
| filename: UndertaleModTool_nightly-Windows | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: | | |
| dotnet build UndertaleModTool --no-restore | |
| dotnet build UndertaleModToolUpdater --no-restore | |
| - name: Publish ${{ matrix.os }} GUI | |
| run: | # FIXME: debug constant isn't being applied here, which disables updater, etc., so need to fix that or possibly add a new constant | |
| dotnet publish UndertaleModTool -c ${{ matrix.configuration }} -r win-x64 -p:DefineConstants="SHOW_COMMIT_HASH" --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=${{ matrix.singlefile }} --output ${{ matrix.os }} | |
| dotnet publish UndertaleModToolUpdater -c ${{ matrix.configuration }} -r win-x64 --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=false --output ${{ matrix.os }}/Updater | |
| - name: Copy external files | |
| run: | | |
| cp ./README.md ./${{ matrix.os }} | |
| cp ./SCRIPTS.md ./${{ matrix.os }} | |
| cp ./LICENSE.txt ./${{ matrix.os }} | |
| rm ./${{ matrix.os }}/Underanalyzer.pdb | |
| - name: Create zip for nightly release Windows GUI | |
| run: | | |
| 7z a -tzip ${{ matrix.filename }}.zip ./${{ matrix.os }}/* -mx0 | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ matrix.filename }} | |
| path: ${{ matrix.filename }}.zip | |
| build_cli: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| configuration: [Debug] | |
| bundled: [true] | |
| target: [linux-x64, osx-arm64, osx-x64, win-x64] | |
| include: | |
| - target: linux-x64 | |
| os: ubuntu-latest | |
| rid: linux-x64 | |
| output: CLI-ubuntu-latest | |
| filename: UTMT_CLI_nightly-Ubuntu | |
| - target: osx-arm64 | |
| os: macOS-latest | |
| rid: osx-arm64 | |
| output: CLI-macOS-latest | |
| filename: UTMT_CLI_nightly-macOS | |
| - target: osx-x64 | |
| os: macOS-latest | |
| rid: osx-x64 | |
| output: CLI-macOS-latest-x86 | |
| filename: UTMT_CLI_nightly-macOS-x86 | |
| - target: win-x64 | |
| os: windows-latest | |
| rid: win-x64 | |
| output: CLI-windows-latest | |
| filename: UTMT_CLI_nightly-Windows | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore UndertaleModCli | |
| - name: Build | |
| run: dotnet build UndertaleModCli --no-restore | |
| - name: Publish ${{ matrix.os }} CLI | |
| run: dotnet publish UndertaleModCli -c ${{ matrix.configuration }} -r ${{ matrix.rid }} --self-contained ${{ matrix.bundled }} -p:PublishSingleFile=false --output ${{ matrix.output }} | |
| - name: Copy external files | |
| run: | | |
| cp ./README.md ./${{ matrix.output }}/ | |
| cp ./SCRIPTS.md ./${{ matrix.output }}/ | |
| cp ./LICENSE.txt ./${{ matrix.output }}/ | |
| cp -r ./UndertaleModTool/Scripts/ ./${{ matrix.output }}/Scripts/ | |
| rm ./${{ matrix.output }}/Underanalyzer.pdb | |
| - name: Create zip for nightly release CLI | |
| run: | | |
| 7z a -tzip ${{ matrix.filename }}.zip ./${{ matrix.output }}/* -mx0 | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ matrix.filename }} | |
| path: ${{ matrix.filename }}.zip | |
| upload: | |
| needs: [build_gui, build_cli] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v8 | |
| - run: | | |
| gh release delete nightly --cleanup-tag --yes | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_REPO: ${{ github.repository }} | |
| - name: Release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| tag_name: nightly | |
| name: Nightly Build - ${{ github.sha }} | |
| prerelease: true | |
| fail_on_unmatched_files: true | |
| files: | | |
| */* | |
| body: | | |
| This is the latest version of unofficial fork of UndertaleModTool By Genouka. | |
| If you encounter any bugs, please make an issue on GitHub. | |
| 这是由秋冥散雨_Genouka 开发的非官方版本的 UndertaleModTool。 | |
| 如果你遇到任何Bug ,请在Github 向此仓库提交 Issue 。 | |
| 请注意:程序默认进入为英文,请在设置(菜单栏)File/Settings/Language 选择 简体中文,之后可能会简化一下) | |
| 如果你不清楚该下载哪个,请下载`UndertaleModTool_nightly-Windows.zip` |