Skip to content

commit by Serverless devs docs 12-29-2023 5:43:5 #335

commit by Serverless devs docs 12-29-2023 5:43:5

commit by Serverless devs docs 12-29-2023 5:43:5 #335

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/[email protected]
# 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