From c4d057685b04407f67614d57c0bbd011bcab02da Mon Sep 17 00:00:00 2001 From: Dimitris Zervas Date: Tue, 15 Sep 2020 00:22:03 +0300 Subject: [PATCH 1/3] Create test.yml --- .github/workflows/test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..777559f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,13 @@ +# This is a basic workflow to help you get started with Actions + +name: Test +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + container: kmkfw/base + + steps: + - uses: actions/checkout@v2 + - run: make test From 173ae842cae7fd7585463c2a54130ac89b9aaa41 Mon Sep 17 00:00:00 2001 From: Dimitris Zervas Date: Tue, 15 Sep 2020 00:34:22 +0300 Subject: [PATCH 2/3] Create deploy.yml --- .github/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..69b3466 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deploy + +on: + push: + branches: [ master ] + create: + tags: [ '*' ] + +jobs: + build: + runs-on: ubuntu-latest + container: kmkfw/base + + steps: + - uses: actions/checkout@v2 + - run: make test + - run: make dist + + - run: make dist-deploy + if: github.event_name == 'push' + env: + CIRCLE_BRANCH: ${{GITHUB_REF_NAME}} + - run: make dist-deploy + if: github.event_name == 'create' + env: + CIRCLE_TAG: ${{GITHUB_REF_NAME}} From 7f1514e8de91ad2080b444b8d6011cecc8fdc2f1 Mon Sep 17 00:00:00 2001 From: Dimitris Zervas Date: Tue, 15 Sep 2020 00:35:12 +0300 Subject: [PATCH 3/3] Remove .circleci --- .circleci/config.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index c1958b5..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -version: 2 -jobs: - build: - docker: - - image: 'kmkfw/base' - - environment: - KMK_TEST: 1 - - steps: - - checkout - - run: make test - - run: make dist - - run: make dist-deploy - -workflows: - version: 2 - build-deploy: - jobs: - - build: - filters: - branches: - only: /.*/ - tags: - only: /.*/