Compare commits

..

10 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
8 changed files with 58 additions and 70 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
steps:
- name: Load secrets
id: op-load-secret
uses: 1password/load-secrets-action@92467eb28f72e8255933372f1e0707c567ce2259 # v4.0.0
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2.0.0
with:
export-env: false
env:
+2 -2
View File
@@ -17,7 +17,7 @@ jobs:
steps:
- name: Load secrets
id: op-load-secret
uses: 1password/load-secrets-action@92467eb28f72e8255933372f1e0707c567ce2259 # v4.0.0
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2.0.0
with:
export-env: false
env:
@@ -52,7 +52,7 @@ jobs:
- name: Docfx build
run: dotnet docfx build docs/docfx.json
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
+40 -38
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
@@ -36,9 +48,9 @@ jobs:
ref: ${{ needs.update-packagejson.outputs.sha }}
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
# build and pack nuget (.nupkg and .symbols.nupkg will be created)
- run: dotnet build -c Release -p:Version=${{ inputs.tag }}
- 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 }} -p:IncludeSymbols=true -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"]
@@ -58,7 +70,7 @@ jobs:
steps:
- name: Load secrets
id: op-load-secret
uses: 1password/load-secrets-action@92467eb28f72e8255933372f1e0707c567ce2259 # v4.0.0
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2.0.0
with:
export-env: false
env:
@@ -92,52 +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
# publish
publish:
name: "Publish NuGet packages"
needs: [build-dotnet, build-unity]
permissions:
contents: read
id-token: write # required for NuGet Trusted Publish
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
- uses: Cysharp/Actions/.github/actions/download-artifact@main
# push nuget
- name: NuGet login (OIDC)
uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0
id: login
with:
user: ${{ secrets.NUGET_USER }}
- run: dotnet nuget push "./nuget/*.nupkg" --skip-duplicate -s https://api.nuget.org/v3/index.json -k "${NUGET_KEY}"
if: ${{ !inputs.dry-run }}
env:
NUGET_KEY: ${{ steps.login.outputs.NUGET_API_KEY }}
# release
create-release:
needs: [update-packagejson, publish]
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: false
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, create-release]
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",