Skip to content

Commit

Permalink
Github Workflow Attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ManjotSingh18 committed Apr 16, 2024
1 parent 72b35db commit 7cbd57d
Showing 1 changed file with 24 additions and 27 deletions.
51 changes: 24 additions & 27 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
name: deploy1

on:
push:
pull_request:

jobs:
name: deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.9' #install the python version needed
- name: serverless deploy
uses: dhollerbach/github-action-serverless-with-python-requirements@master
with:
args: ''
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

deploy:
name: deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.9' #install the python version needed
- name: serverless deploy
uses: dhollerbach/github-action-serverless-with-python-requirements@master
with:
args: ''
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 7cbd57d

Please sign in to comment.