File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
run-docfx :
14
+ if : ${{ ((github.event_name == 'push' && github.repository_owner == 'Cysharp') || startsWith(github.event.pull_request.head.label, 'Cysharp:')) && github.triggering_actor != 'dependabot[bot]' }}
14
15
permissions :
15
16
contents : write
16
17
pages : write
17
18
runs-on : ubuntu-24.04
18
19
timeout-minutes : 10
19
20
steps :
21
+ - name : Load secrets
22
+ id : op-load-secret
23
+ uses : 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2.0.0
24
+ with :
25
+ export-env : false
26
+ env :
27
+ OP_SERVICE_ACCOUNT_TOKEN : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }}
28
+ UNITY_EMAIL : " op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/UNITY_LICENSE/username"
29
+ UNITY_PASSWORD : " op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/UNITY_LICENSE/credential"
30
+ UNITY_SERIAL : " op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/UNITY_LICENSE/serial"
20
31
- uses : Cysharp/Actions/.github/actions/checkout@main
32
+ # Execute scripts: Export Package
33
+ # /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod PackageExporter.Export
34
+ - name : Build Unity (.unitypackage)
35
+ uses : Cysharp/Actions/.github/actions/unity-builder@main
36
+ env :
37
+ UNITY_EMAIL : ${{ steps.op-load-secret.outputs.UNITY_EMAIL }}
38
+ UNITY_PASSWORD : ${{ steps.op-load-secret.outputs.UNITY_PASSWORD }}
39
+ UNITY_SERIAL : ${{ steps.op-load-secret.outputs.UNITY_SERIAL }}
40
+ with :
41
+ projectPath : src/UniTask
42
+ unityVersion : " 2022.3.39f1"
43
+ targetPlatform : StandaloneLinux64
44
+ buildMethod : PackageExporter.Export
45
+
21
46
- uses : Cysharp/Actions/.github/actions/checkout@main
22
47
with :
23
48
repository : Cysharp/DocfxTemplate
Original file line number Diff line number Diff line change 4
4
"src" : [
5
5
{
6
6
"files" : [
7
- " UniTask/Assets/Plugins /UniTask/Runtime/**/*.cs "
7
+ " UniTask/Library/ScriptAssemblies /UniTask*.dll "
8
8
],
9
9
"src" : " ../src"
10
10
}
54
54
}
55
55
],
56
56
"dest" : " _site" ,
57
-
58
57
"globalMetadataFiles" : [],
59
58
"fileMetadataFiles" : [],
60
59
"template" : [
67
66
"keepFileLink" : false ,
68
67
"cleanupCacheHistory" : false
69
68
}
70
- }
69
+ }
You can’t perform that action at this time.
0 commit comments