From 173ae842cae7fd7585463c2a54130ac89b9aaa41 Mon Sep 17 00:00:00 2001 From: Dimitris Zervas Date: Tue, 15 Sep 2020 00:34:22 +0300 Subject: [PATCH] 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}}