Skip to content

Commit

Permalink
ci: Add web app deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sayandcode committed Mar 29, 2024
1 parent bdfe3a1 commit 9bfc0ee
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-web-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy Web app and Infrastructure
on: workflow_dispatch

jobs:
main:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

# We need foundry for contract types
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install node dependencies
run: |
cd web-app/infra
npm ci
- name: Deploy
env:
WEB_APP_INFRA_ENV: ${{ secrets.WEB_APP_INFRA_ENV }}
run: |
cd web-app/infra
echo "$WEB_APP_INFRA_ENV" > .env
npm run deploy

0 comments on commit 9bfc0ee

Please sign in to comment.