commit by Serverless devs docs 12-1-2023 6:13:26 #324
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: 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 |