Skip to content

Merge pull request #4 from leancloud/test-deployment #5

Merge pull request #4 from leancloud/test-deployment

Merge pull request #4 from leancloud/test-deployment #5

# Controls when the action will run. Triggers the workflow on push request for the master branch
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.CHECKOUT_TOKEN }}
- name: Deploy to LeanEngine
uses: enflo/curl-action@v1.2
with:
curl: -X POST https://console-api.cn-n1.lcops.cn/1.1/engine/groups/web/production/version?gitTag=${{ github.sha }}&token=${{ secrets.LC_DEPLOY_TOKEN }}