From 944cf29f3908107c30f3ad0b4e14d798983a9b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A1llyto=20Rodrigues?= Date: Fri, 1 Apr 2022 20:22:07 -0300 Subject: [PATCH] config: github actions deploy --- .github/workflows/serverless-publish.yml | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/serverless-publish.yml diff --git a/.github/workflows/serverless-publish.yml b/.github/workflows/serverless-publish.yml new file mode 100644 index 0000000..2ec7f2a --- /dev/null +++ b/.github/workflows/serverless-publish.yml @@ -0,0 +1,37 @@ +name: serverless-deploy + +# deploy on merge main - disabled +# on: +# push: +# branches: +# - main + +jobs: + deploy: + name: deploy + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + + # tests whit hest + # - name: Run Jest + # uses: stefanoeb/jest-action@1.0.3 + + # serverless deploy + - name: serverless deploy + uses: serverless/github-action@master + with: + args: deploy --stage devel + env: + # SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }} + # or if using AWS credentials directly + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} \ No newline at end of file