Merge pull request #177 from stone-payments/release/v2.0.0 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PublishPlugin | |
on: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
env: | |
LUA: "lua=5.1" | |
GCP_PROJECT_ID: "si26ef9dii9zscrxrecql6kl8eguw2" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: 'Create PR: Merge master into develop branch' | |
id: create-develop-pull-request | |
uses: thomaseizinger/create-pull-request@1.2.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
head: master | |
base: develop | |
labels: develop | |
title: Merge master into develop branch | |
body: | | |
This PR merges the master branch back into develop. | |
This happens to ensure that the updates that happend on the release branch, i.e. CHANGELOG and manifest updates are also present on the develop branch. | |
- name: before install | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libssl-dev luarocks | |
sudo pip install hererocks | |
sudo hererocks lua_install -r^ --${{ env.LUA }} | |
export PATH=$PATH:$PWD/lua_install/bin | |
- name: install | |
run: | | |
git config --global url.https://github.com/.insteadOf git://github.com/ | |
sudo make setup | |
sudo make install | |
- name: test | |
run: | | |
sudo make test | |
- name: GCP Auth | |
id: auth | |
uses: google-github-actions/auth@v0.4.0 | |
with: | |
credentials_json: ${{ secrets.GCP_CREDENTIALS }} | |
- name: Get Luarocks API Key | |
id: luarocks-key | |
uses: google-github-actions/get-secretmanager-secrets@v0.2.2 | |
with: | |
secrets: |- | |
LUAROCKS_API_KEY:${{ env.GCP_PROJECT_ID }}/LUAROCKS_APIKEY | |
- name: deploy | |
run: | | |
luarocks upload kong-plugin-template-transformer-*.rockspec --api-key=${{ steps.luarocks-key.outputs.LUAROCKS_API_KEY }} |