diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index b871786..843113a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -42,7 +42,7 @@ jobs: - name: Push NuGet Package to nuget.org run: dotnet nuget push "build/*" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate - - name: Upload Build Artifacts + - name: Upload build artifacts uses: actions/upload-artifact@v3 with: name: build @@ -58,8 +58,14 @@ jobs: run: | dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Debug/netstandard2.1/X10D.dll" cp package.json upm/package.json + + - name: Check for changes + run: git diff --quiet + shell: bash + continue-on-error: true - name: Commit update + if: ${{ success() }} run: | cd upm cp ../X10D/bin/Debug/netstandard2.1/X10D.dll ./X10D.dll diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index bbd8002..ab51aef 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -42,7 +42,7 @@ jobs: - name: Push NuGet Package to nuget.org run: dotnet nuget push "build/*" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate - - name: Upload Build Artifacts + - name: Upload build artifacts uses: actions/upload-artifact@v3 with: name: build @@ -65,7 +65,13 @@ jobs: dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll" cp package.json upm/package.json + - name: Check for changes + run: git diff --quiet + shell: bash + continue-on-error: true + - name: Commit update + if: ${{ success() }} run: | cd upm cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac28093..de6a516 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: - name: Push NuGet Package to nuget.org run: dotnet nuget push "build/*" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate - - name: Upload Build Artifacts + - name: Upload build artifacts uses: actions/upload-artifact@v3 with: name: build @@ -65,7 +65,13 @@ jobs: dotnet run --project ./X10D.UpmPackageGenerator/X10D.UpmPackageGenerator.csproj "./X10D/bin/Release/netstandard2.1/X10D.dll" cp package.json upm/package.json + - name: Check for changes + run: git diff --quiet + shell: bash + continue-on-error: true + - name: Commit update + if: ${{ success() }} run: | cd upm cp ../X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.dll