Skip to content

Commit

Permalink
added whitelable deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
future-pirate-king committed Dec 3, 2024
1 parent d19b5c2 commit 5ea591e
Show file tree
Hide file tree
Showing 3 changed files with 16,406 additions and 261 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy_whitelabel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy WhiteLabel
on: [push]

concurrency:
group: ${{ github.workflow }}-ci-${{ github.ref }}
cancel-in-progress: true

jobs:
setup_app:
name: Setup Application
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4

- name: Restore cache or Install dependencies
uses: ./.github/actions/setup-app

deploy:
runs-on: [ubuntu-latest]
needs: setup_app
strategy:
matrix:
site:
- id: NETLIFY_SITE_ID
name: 'Site Name'
env: ${{ vars.NETLIFY_SITE_ENV }}
# Add more sites as needed
name: Deploy to ${{ matrix.site.name }}
steps:
- uses: actions/checkout@v4

- name: Restore cache or Install dependencies
uses: ./.github/actions/setup-app

- name: Set Environment Variables
run: echo "${{ matrix.site.env }}" >> $GITHUB_ENV

- name: Build App
run: npm run build

- name: Deploy to Netlify
run: |
npm run netlify:deploy -- \
--site ${{ secrets[matrix.site.id] }} \
--auth ${{ secrets.NETLIFY_API_TOKEN }} \
--prod
Loading

0 comments on commit 5ea591e

Please sign in to comment.