From 89c025e8621540f842341d331f2e69568f9cb487 Mon Sep 17 00:00:00 2001 From: fabriciojs Date: Thu, 26 Nov 2020 15:27:30 -0300 Subject: [PATCH 1/3] kool deploy GH Action --- .github/workflows/kool-deploy.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/kool-deploy.yml diff --git a/.github/workflows/kool-deploy.yml b/.github/workflows/kool-deploy.yml new file mode 100644 index 0000000..01182ae --- /dev/null +++ b/.github/workflows/kool-deploy.yml @@ -0,0 +1,17 @@ +on: + release: + types: [ published ] + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + env: + KOOL_DEPLOY_DOMAIN: ci.kool.dev + + steps: + - uses: kool-dev/action@v1 + + - name: Kool Deploy + run: kool deploy From 806e13f7a319e387984c2327279fd1ba3c2a4a76 Mon Sep 17 00:00:00 2001 From: fabriciojs Date: Thu, 26 Nov 2020 15:29:59 -0300 Subject: [PATCH 2/3] checkout code for deploy on CI GH action --- .github/workflows/kool-deploy.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/kool-deploy.yml b/.github/workflows/kool-deploy.yml index 01182ae..9aefd6d 100644 --- a/.github/workflows/kool-deploy.yml +++ b/.github/workflows/kool-deploy.yml @@ -11,7 +11,11 @@ jobs: KOOL_DEPLOY_DOMAIN: ci.kool.dev steps: - - uses: kool-dev/action@v1 + - name: Install Kool + uses: kool-dev/action@v1 - - name: Kool Deploy - run: kool deploy + - name: Checkout code + uses: actions/checkout@master + + - name: Kool Deploy + run: kool deploy From 8c0974673a8a0a19057a7221cefe8c41e0932221 Mon Sep 17 00:00:00 2001 From: fabriciojs Date: Thu, 26 Nov 2020 15:33:11 -0300 Subject: [PATCH 3/3] add secret as env var for deploy --- .github/workflows/kool-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/kool-deploy.yml b/.github/workflows/kool-deploy.yml index 9aefd6d..4114a9c 100644 --- a/.github/workflows/kool-deploy.yml +++ b/.github/workflows/kool-deploy.yml @@ -9,6 +9,7 @@ jobs: env: KOOL_DEPLOY_DOMAIN: ci.kool.dev + KOOL_API_TOKEN: ${{ secrets.KOOL_API_TOKEN }} steps: - name: Install Kool