From 5b5aec96d55c3f1536681576082b899e5d6c9399 Mon Sep 17 00:00:00 2001 From: Aleh Hutnikau Date: Mon, 5 Apr 2021 16:49:16 +0300 Subject: [PATCH] ci: add automated release github action --- .github/workflows/continous-integration.yml | 20 ++++++++++++++++++ .github/workflows/release.yml | 23 +++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/continous-integration.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/continous-integration.yml b/.github/workflows/continous-integration.yml new file mode 100644 index 0000000..2b2f24f --- /dev/null +++ b/.github/workflows/continous-integration.yml @@ -0,0 +1,20 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Continous integration + +on: + pull_request: + branches: [ develop ] + +jobs: + pr-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: git fetch --unshallow --tags + - name: Check commit + if: always() + uses: oat-sa/conventional-commit-action@v0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..39b0191 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +# This workflow will do a release after merge to develop branch + +name: Relese Tao extension + +on: + pull_request: + branches: + - develop + types: [closed] +jobs: + auto-release: + if: github.event.pull_request.merged == true + name: Automated Tao extension release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Release + uses: oat-sa/extension-release-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + with: + github_token: ${{ secrets.GH_TOKEN }}