diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..578d4cf7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +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 + uses: actions/setup-python@v4 + with: + python-version: '3.9' + - name: install serverless + run: npm i -g serverless + - run: serverless plugin install -n serverless-wsgi + - name: severless deploy + run: sls deploy --verbose --force +