Compare commits

...

17 Commits

Author SHA1 Message Date
Ikiru Yoshizaki a77a1b4a89 Merge pull request #729 from Cysharp/ci
ci: remove stale issue workflows
2026-10-06 20:15:12 +09:00
Ikiru Yoshizaki d46395e3fd ci: remove stale issue workflows 2026-10-06 19:41:33 +09:00
Ikiru Yoshizaki 0d6dfd0ab1 Merge pull request #728 from Cysharp/release
ci: Improve consistency for nuget publish
2026-10-06 17:35:22 +09:00
Ikiru Yoshizaki 3257a1d3c8 ci: Improve consistency for nuget publish 2026-10-06 17:15:50 +09:00
Ikiru Yoshizaki f74aace058 Merge pull request #727 from Cysharp/update
chore: update runtimeunittesttoolkit to 2.6.2
2026-09-29 19:56:59 +09:00
Ikiru Yoshizaki 1a896f5c67 chore: update runtimeunittesttoolkit to 2.6.2 2026-09-29 19:29:00 +09:00
Ikiru Yoshizaki 94f125ebaf chore: add "Build succeeded!" when export completed. 2026-09-29 18:02:18 +09:00
Ikiru Yoshizaki ceac8d6946 Merge pull request #723 from Cysharp/harness
ci: add pr harness check
2026-07-08 12:24:34 +09:00
Ikiru Yoshizaki 584e96b639 ci: default branch 2026-07-08 12:17:50 +09:00
Ikiru Yoshizaki 60880a6810 ci: add pr harness check 2026-07-08 11:44:08 +09:00
Ikiru Yoshizaki e5acc106ee Merge pull request #715 from Cysharp/ci/nuget
ci: use OIDC for NuGet package push authentication
2026-05-20 21:40:43 +09:00
Ikiru Yoshizaki b0d26bebea ci: add dedicated publish job gated on build and build-unity 2026-05-20 19:38:57 +09:00
Ikiru Yoshizaki 4cfac5c9d2 ci: fix symbol generation options 61d8d3 2026-05-20 18:59:38 +09:00
Ikiru Yoshizaki 37251f09d4 ci: publish symbol files 2026-05-20 18:22:01 +09:00
Ikiru Yoshizaki a18e8e38da ci: handle SymbolPackageFormat on build 2026-05-20 18:06:57 +09:00
Ikiru Yoshizaki 19b01fe8d6 ci: id-token permission 2026-05-20 16:48:40 +09:00
Ikiru Yoshizaki a09a450b0f ci: use OIDC for NuGet package push authentication
This updates the build-release workflow to leverage OpenID Connect (OIDC) for authenticating with NuGet.org. The package push operation is now performed directly within the build job, replacing static API key usage with ephemeral credentials for enhanced security.
2026-05-20 16:12:26 +09:00
6 changed files with 55 additions and 44 deletions
+40 -15
View File
@@ -12,19 +12,31 @@ on:
default: false
type: boolean
concurrency:
group: release
cancel-in-progress: false
jobs:
validate-release:
permissions:
contents: read
uses: Cysharp/Actions/.github/workflows/validate-release.yaml@main
with:
tag: ${{ inputs.tag }}
update-packagejson:
needs: [validate-release]
permissions:
actions: read
contents: write
uses: Cysharp/Actions/.github/workflows/update-packagejson.yaml@main
with:
file-path: ./src/UniTask/Assets/Plugins/UniTask/package.json
tag: ${{ inputs.tag }}
tag: ${{ needs.validate-release.outputs.tag }}
dry-run: ${{ inputs.dry-run }}
build-dotnet:
needs: [update-packagejson]
needs: [validate-release, update-packagejson]
permissions:
contents: read
runs-on: ubuntu-24.04
@@ -35,10 +47,10 @@ jobs:
with:
ref: ${{ needs.update-packagejson.outputs.sha }}
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
# build and pack
- run: dotnet build -c Release -p:Version=${{ inputs.tag }}
# build and pack nuget (.nupkg and .symbols.nupkg will be created)
- run: dotnet build -c Release -p:Version=${{ needs.validate-release.outputs.tag }}
- run: dotnet test -c Release --no-build
- run: dotnet pack ./src/UniTask.NetCore/UniTask.NetCore.csproj -c Release --no-build -p:Version=${{ inputs.tag }} -o ./publish
- run: dotnet pack ./src/UniTask.NetCore/UniTask.NetCore.csproj -c Release --no-build -p:Version=${{ needs.validate-release.outputs.tag }} -p:IncludeSymbols=true -o ./publish
# Store artifacts.
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
@@ -47,7 +59,7 @@ jobs:
retention-days: 1
build-unity:
needs: [update-packagejson]
needs: [validate-release, update-packagejson]
strategy:
matrix:
unity: ["2022.3.39f1"]
@@ -92,29 +104,42 @@ jobs:
# Store artifacts.
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
name: UniTask.${{ inputs.tag }}.unitypackage
path: ./src/UniTask/UniTask.${{ inputs.tag }}.unitypackage
name: UniTask.${{ needs.validate-release.outputs.tag }}.unitypackage
path: ./src/UniTask/UniTask.${{ needs.validate-release.outputs.tag }}.unitypackage
retention-days: 1
# release
create-release:
needs: [update-packagejson, build-dotnet, build-unity]
needs: [validate-release, update-packagejson, build-dotnet, build-unity]
permissions:
contents: write
id-token: write # required for NuGet Trusted Publish
uses: Cysharp/Actions/.github/workflows/create-release.yaml@main
with:
commit-id: ${{ needs.update-packagejson.outputs.sha }}
dry-run: ${{ inputs.dry-run }}
tag: ${{ inputs.tag }}
nuget-push: true
tag: ${{ needs.validate-release.outputs.tag }}
release-upload: true
release-asset-path: ./UniTask.${{ inputs.tag }}.unitypackage/UniTask.${{ inputs.tag }}.unitypackage
release-asset-path: ./UniTask.${{ needs.validate-release.outputs.tag }}.unitypackage/UniTask.${{ needs.validate-release.outputs.tag }}.unitypackage
secrets: inherit
publish-package:
needs: [validate-release, create-release]
if: ${{ !inputs.dry-run }}
permissions:
contents: read
id-token: write # required for NuGet Trusted Publish in the calling repository
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: Cysharp/Actions/.github/actions/publish-nuget@main
with:
artifact-name: nuget
user: ${{ secrets.NUGET_USER }}
version: ${{ needs.validate-release.outputs.version }}
cleanup:
if: ${{ needs.update-packagejson.outputs.is-branch-created == 'true' }}
needs: [update-packagejson, build-dotnet, build-unity]
if: ${{ always() && needs.update-packagejson.outputs.is-branch-created == 'true' }}
needs: [update-packagejson, create-release, publish-package]
permissions:
contents: write
uses: Cysharp/Actions/.github/workflows/clean-packagejson-branch.yaml@main
+12
View File
@@ -0,0 +1,12 @@
name: PR Harness
on:
pull_request:
branches: [master]
jobs:
harness:
permissions:
contents: read
pull-requests: read
uses: Cysharp/Actions/.github/workflows/pr-harness.yaml@main
@@ -1,12 +0,0 @@
name: Prevent github change
on:
pull_request:
paths:
- ".github/**/*.yaml"
- ".github/**/*.yml"
jobs:
detect:
permissions:
contents: read
uses: Cysharp/Actions/.github/workflows/prevent-github-change.yaml@main
-14
View File
@@ -1,14 +0,0 @@
name: "Close stale issues"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
stale:
permissions:
contents: read
pull-requests: write
issues: write
uses: Cysharp/Actions/.github/workflows/stale-issue.yaml@main
+2 -2
View File
@@ -30,7 +30,7 @@ public static class PackageExporter
exportPath,
ExportPackageOptions.Default);
UnityEngine.Debug.Log("Export complete: " + Path.GetFullPath(exportPath));
UnityEngine.Debug.Log("Build succeeded! Export complete: " + Path.GetFullPath(exportPath));
}
static string GetVersion(string root)
@@ -70,4 +70,4 @@ public static class PackageExporter
}
}
#endif
#endif
+1 -1
View File
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.cysharp.runtimeunittesttoolkit": "https://github.com/Cysharp/RuntimeUnitTestToolkit.git?path=RuntimeUnitTestToolkit/Assets/RuntimeUnitTestToolkit#2.6.0",
"com.cysharp.runtimeunittesttoolkit": "https://github.com/Cysharp/RuntimeUnitTestToolkit.git?path=RuntimeUnitTestToolkit/Assets/RuntimeUnitTestToolkit#2.6.2",
"com.unity.collab-proxy": "2.4.3",
"com.unity.ide.rider": "3.0.31",
"com.unity.ide.visualstudio": "2.0.22",