From cbb81289d85390e13ca5432556607e79ffe2555b Mon Sep 17 00:00:00 2001 From: Cycrypto Date: Tue, 2 Apr 2024 14:18:39 +0900 Subject: [PATCH] add: create ci workflows --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml 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 +