Skip to content

commit by Serverless devs docs 12-1-2023 6:13:26 #324

commit by Serverless devs docs 12-1-2023 6:13:26

commit by Serverless devs docs 12-1-2023 6:13:26 #324

Workflow file for this run

name: Serverless Devs Project CI/CD
on:
push:
branches: [master]
jobs:
serverless-devs-cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
# - uses: borales/actions-yarn@v2.3.0
# with:
# cmd: install
- run: npm install -g @serverless-devs/s
- run: s config add --AccountID ${{secrets.ALIYUN_ACCOUNT_ID}} --AccessKeyID ${{secrets.ALIYUN_ACCESS_KEY_ID}} --AccessKeySecret ${{secrets.ALIYUN_ACCESS_KEY_SECRET}} -a serverless-devs -f
- name: deploy serverless devs
env:
ACCESS_KEY_ID: ${{secrets.ALIYUN_ACCESS_KEY_ID}}
ACCESS_KEY_SECRET: ${{secrets.ALIYUN_ACCESS_KEY_ID}}
run: s deploy --use-local -y --debug