more CI settings to release automatically

master
Yoshifumi Kawai 2020-04-15 15:29:29 +09:00
parent 5e2a4934dd
commit 139f5f7914
3 changed files with 26 additions and 3 deletions

View File

@ -6,6 +6,9 @@ executors:
version: {type: string} version: {type: string}
docker: docker:
- image: gableroux/unity3d:<< parameters.version >> - image: gableroux/unity3d:<< parameters.version >>
go:
docker:
- image: circleci/golang
commands: commands:
unity_activate: unity_activate:
parameters: parameters:
@ -57,6 +60,17 @@ jobs:
- store_artifacts: - store_artifacts:
path: ./UniRx.Async.unitypackage path: ./UniRx.Async.unitypackage
destination: /UniRx.Async.unitypackage destination: /UniRx.Async.unitypackage
# upload to github by ghr
upload-github:
executor: go
steps:
- attach_workspace:
at: .
- run: go get github.com/tcnksm/ghr
- run: ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} ${CIRCLE_TAG} .
- store_artifacts:
path: UniRx.Async.unitypackage
destination: UniRx.Async.unitypackage
workflows: workflows:
version: 2 version: 2
build-unity: build-unity:
@ -81,4 +95,13 @@ workflows:
# # UniTask minimum support version is 2018.3(C# 7.x) # # UniTask minimum support version is 2018.3(C# 7.x)
# - build-and-test: # - build-and-test:
# unity_version: 2018.3.12f1 # unity_version: 2018.3.12f1
# unity_license: ${UNITY_LICENSE_2018_3} # unity_license: ${UNITY_LICENSE_2018_3}
- upload-github:
requires:
- build-and-test
- build-and-create-package
filters:
tags:
only: /^\d\.\d\.\d.*/
branches:
ignore: /.*/

View File

@ -17,7 +17,7 @@ public static class PackageExporter
var path = Path.Combine(Application.dataPath, root); var path = Path.Combine(Application.dataPath, root);
var assets = Directory.EnumerateFiles(path, "*", SearchOption.AllDirectories) var assets = Directory.EnumerateFiles(path, "*", SearchOption.AllDirectories)
.Where(x => Path.GetExtension(x) == ".cs" || Path.GetExtension(x) == ".asmdef" || Path.GetExtension(x) == ".json") .Where(x => Path.GetExtension(x) == ".cs" || Path.GetExtension(x) == ".asmdef" || Path.GetExtension(x) == ".json" || Path.GetExtension(x) == ".meta")
.Select(x => "Assets" + x.Replace(Application.dataPath, "").Replace(@"\", "/")) .Select(x => "Assets" + x.Replace(Application.dataPath, "").Replace(@"\", "/"))
.ToArray(); .ToArray();

View File

@ -18,7 +18,7 @@ namespace UniRx.Async.Editor
static UniTaskTrackerWindow window; static UniTaskTrackerWindow window;
[MenuItem("Window/UniRx/UniTask Tracker")] [MenuItem("Window/UniTask Tracker")]
public static void OpenWindow() public static void OpenWindow()
{ {
if (window != null) if (window != null)