modify cd directory path #22
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: Deploy sls app | |
on: | |
push: | |
branches: | |
- feature/deploy | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install serverless | |
run: cd aws-sandol-api && npm install -g serverless | |
- run: serverless plugin install -n serverless-wsgi | |
- name: Deploy with serverless | |
run: sls deploy --verbose --force | |