Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created January 12, 2021 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/f1ee8500964da341d40ed19827c1d8ba to your computer and use it in GitHub Desktop.
Save velotiotech/f1ee8500964da341d40ed19827c1d8ba to your computer and use it in GitHub Desktop.
name: Serverless S3
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.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: yarn install
- run: yarn build
- name: serverless deploy s3
uses: serverless/github-action@master
with:
args: client deploy --no-confirm
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment