Skip to content

Commit

Permalink
add netlify deploy CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian committed Mar 4, 2024
1 parent 0696a4a commit 8bd2b59
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-netlify-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Deploy Netlify
on:
push:
branches: [main]
paths:
- 'web-app/**'
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths:
- 'web-app/**'
jobs:
deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web-app
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Deploy to Netlify Action 🚀
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy --dir=web-app/build
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'

0 comments on commit 8bd2b59

Please sign in to comment.