Skip to content

Commit

Permalink
Merge branch 'release/1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
taha-abbasi committed Jan 24, 2024
2 parents 6ba3df4 + 5988c51 commit 18b2293
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy main
on:
push:
branches:
- main

jobs:

build:
name: Build and Deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install packages, test and build artifacts
run: |
unset CI
npm install
npm run build
- name: Generate deployment package
run: rm -rf .gitignore && zip -r deploy.zip . -x '*.git*'

- name: Set outputs
id: vars
run: ls -la && du -hsc deploy.zip && echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v21
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: ${{ vars.APP_NAME }}
environment_name: ${{ vars.ENV_NAME }}
version_label: snap-hodl-${{ steps.vars.outputs.sha_short }}
region: ${{ secrets.AWS_REGION }}
deployment_package: deploy.zip

0 comments on commit 18b2293

Please sign in to comment.