From c32c2121c9edb0e14978e41dc46946a744aadaa1 Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Mon, 25 Oct 2021 13:00:03 +0300 Subject: [PATCH] Switch deployment to GitHub Actions (#112) build: switch deployment to GitHub Actions Switch product deployment to GitHub Actions. --- .github/CODEOWNERS | 4 ++-- .github/workflows/commands-handler.yml | 26 +++++++++++++++++++++++++ .github/workflows/release/versions.json | 9 +++++++++ .gitignore | 4 ++++ 4 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/commands-handler.yml create mode 100644 .github/workflows/release/versions.json diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1062e63f..ed609915 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,4 +1,4 @@ * @kleewho @crimsonred @raipubnub -.travis/* @parfeon @kleewho @crimsonred @raipubnub -README.md @techwritermat +.github/* @parfeon @kleewho @crimsonred @raipubnub +README.md @techwritermat @kazydek diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml new file mode 100644 index 00000000..d7401e17 --- /dev/null +++ b/.github/workflows/commands-handler.yml @@ -0,0 +1,26 @@ +name: Commands processor + +on: + issue_comment: + types: [created] + +jobs: + process: + name: Process command + if: ${{ github.event.issue.pull_request && endsWith(github.repository, '-private') != true && startsWith(github.event.comment.body, '@client-engineering-bot ') }} + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Checkout release actions + uses: actions/checkout@v2 + with: + repository: pubnub/client-engineering-deployment-tools + ref: v1 + token: ${{ secrets.GH_TOKEN }} + path: .github/.release/actions + - name: Process changelog entries + uses: ./.github/.release/actions/actions/commands + with: + token: ${{ secrets.GH_TOKEN }} + listener: client-engineering-bot diff --git a/.github/workflows/release/versions.json b/.github/workflows/release/versions.json new file mode 100644 index 00000000..f593b300 --- /dev/null +++ b/.github/workflows/release/versions.json @@ -0,0 +1,9 @@ +{ + ".pubnub.yml": [ + { "pattern": "^version: (.+)$", "cleared": false }, + { "pattern": "\/releases\/tag\/(v?(\\d+\\.?){2,}([a-zA-Z-]+(\\.?\\d+)?)?)", "cleared": false } + ], + "pubnub.go": [ + { "pattern": "Version = \"(.*)\"", "cleared": true } + ] +} diff --git a/.gitignore b/.gitignore index 6b9ec3b3..2268b7a1 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,7 @@ coverage.txt *.out vendor/golang.org/ + +# GitHub Actions # +################## +.github/.release