diff --git a/.github/workflows/build-wasm-and-linux-binaries.yml b/.github/workflows/build-wasm-and-linux-binaries.yml index 6a3db2d0..b3cc183d 100644 --- a/.github/workflows/build-wasm-and-linux-binaries.yml +++ b/.github/workflows/build-wasm-and-linux-binaries.yml @@ -26,17 +26,19 @@ jobs: - name: Install .NET WASM workloads working-directory: ./Starship run: dotnet workload install wasm-tools - - name: Get Next Version - id: semver - uses: ietf-tools/semver-action@v1 - with: - token: ${{ github.token }} - branch: main - noVersionBumpBehavior: patch + # - name: Get Next Version + # id: semver + # uses: ietf-tools/semver-action@v1 + # with: + # token: ${{ github.token }} + # branch: main + # noVersionBumpBehavior: patch - name: "Display build version" - run: echo "tag v2.0.0-beta.${{ steps.semver.outputs.nextStrict }}" + # run: echo "tag v2.0.0-beta.${{ steps.semver.outputs.nextStrict }}" + run: echo "tag v2.0.0-beta.${{ github.run_number }}" - name: Patch VERSION constant inside Starship/Rockstar.Engine/RockstarEnvironment.cs - run: sed -i 's/VERSION = "[^"]*";/VERSION = "v2.0.0-beta.${{ steps.semver.outputs.nextStrict }}";/g' Starship/Rockstar.Engine/RockstarEnvironment.cs + # run: sed -i 's/VERSION = "[^"]*";/VERSION = "v2.0.0-beta.${{ steps.semver.outputs.nextStrict }}";/g' Starship/Rockstar.Engine/RockstarEnvironment.cs + run: sed -i 's/VERSION = "[^"]*";/VERSION = "v2.0.0-beta.${{ github.run_number }}";/g' Starship/Rockstar.Engine/RockstarEnvironment.cs - name: Build Rockstar run: dotnet build Starship -c Release - name: Test Rockstar @@ -51,7 +53,7 @@ jobs: run: | git config --global user.name 'workflows/build-wasm-and-linux-binaries.yml' git config --global user.email 'dylanbeattie@users.noreply.github.com' - git commit -am "[skip actions] set VERSION = v2.0.0-beta.${{ steps.semver.outputs.nextStrict }} in RockstarEnvironment.cs" + git commit -am "[skip actions] set VERSION = v2.0.0-beta.${{ github.run_number }} in RockstarEnvironment.cs" git push - name: dotnet publish WASM engine run: dotnet publish Starship/Rockstar.Wasm -o rockstar-wasm-binary -c Release