diff --git a/.build.yml b/.builds/ci.yml similarity index 69% rename from .build.yml rename to .builds/ci.yml index c79b698..7bd9268 100644 --- a/.build.yml +++ b/.builds/ci.yml @@ -8,7 +8,8 @@ secrets: - 01f84277-3abe-4ed1-9d0d-d66b49bfcfe7 - 5756e542-1a3e-4c27-ac4c-4820cff2b965 - 576364b7-4764-4794-a536-1a3357fb222b - - 3f89fef9-5367-4a4e-abcd-48428e354073 +environment: + CI: "true" tasks: - setup: | sudo n stable @@ -23,8 +24,4 @@ tasks: - publish: | . ~/.npm-token cd angularjs-testing-library - CI=true yarn semantic-release - - mirror: | - cd angularjs-testing-library - ssh-keyscan github.com >> ~/.ssh/known_hosts - git push --mirror git@github.com:statianzo/angularjs-testing-library.git \ No newline at end of file + yarn semantic-release \ No newline at end of file diff --git a/.builds/mirror.yml b/.builds/mirror.yml new file mode 100644 index 0000000..46001a8 --- /dev/null +++ b/.builds/mirror.yml @@ -0,0 +1,15 @@ +image: archlinux +secrets: +- 3f89fef9-5367-4a4e-abcd-48428e354073 +sources: +- https://git.sr.ht/~statianzo/angularjs-testing-library +tasks: +- master_only: | + cd angularjs-testing-library + if [ "$(git rev-parse origin/master)" != "$(git rev-parse HEAD)" ]; then \ + complete-build; \ + fi +- mirror: | + cd angularjs-testing-library + ssh-keyscan github.com >> ~/.ssh/known_hosts + git push --mirror git@github.com:statianzo/angularjs-testing-library.git \ No newline at end of file