Merge pull request #4 from leancloud/test-deployment #5
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
# 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 }} |