diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 28c7c68..ce35c6a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,28 +1,40 @@ -name: Production Build and Deploy +name: Staging Build and Deploy +# This workflow is triggered on a push to the development branch on: push: branches: - - main + - staging +# Set Permissions +permissions: + contents: write + +# Configure Jobs jobs: build: + # concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 +# Checkout + - name: Checkout Code 🛎️ + uses: actions/checkout@v4 + +# Setup Node.js - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20 + registry-url: https://npm.pkg.github.com/ - - name: Build Angular app to prod - working-directory: angular-starter - run: npm install && npm run build --configuration=production +# Install Dependencies and Build App + - name: Build Angular App 🔧 + # working-directory: angular-starter + run: | + npm ci + npm run build --configuration=staging - - name: Deploy to GitHub Pages (Production) + - name: Deploy to GitHub Pages 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: - folder: angular-starter/dist/browser - branch: prod - token: ${{ secrets.GH_TOKEN }} + folder: build # The folder the action should deploy. diff --git a/.gitignore b/.gitignore index 184af47..7ceae64 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ yarn-error.log *.sublime-workspace # Visual Studio Code +*.code-workspace .vscode/* !.vscode/settings.json !.vscode/tasks.json @@ -31,6 +32,7 @@ yarn-error.log !.vscode/extensions.json .history/* + # Miscellaneous /.angular/cache .sass-cache/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 13debf6..fcaec70 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing to Multi-Tenant Angular 18 Starter with Supabase -First off, thank you for considering contributing to this project! It's people like you that make this starter template a great tool for the Angular developercommunity. +First off, thank you for considering contributing to this project! It's people like you that make this starter template a great tool for the Angular developer community. ## Table of Contents diff --git a/README.md b/README.md index dcde3cc..6eaf066 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ ![Angular](https://img.shields.io/badge/angular-%23DD0031.svg?style=for-the-badge&logo=angular&logoColor=white) ![Supabase](https://img.shields.io/badge/Supabase-%233ECF8E.svg?style=for-the-badge&logo=supabase&logoColor=white) ![Netlify](https://img.shields.io/badge/netlify-%23000000.svg?style=for-the-badge&logo=netlify&logoColor=#00C7B7) +![Angular Material](https://img.shields.io/badge/Angular_Material-%23000000.svg?style=for-the-badge&logo=angular&logoColor=white) + A production-ready starter template for building multi-tenant applications with Angular 18 and Supabase. diff --git a/src/index.html b/src/index.html index 28f86f9..0e037f8 100644 --- a/src/index.html +++ b/src/index.html @@ -2,7 +2,7 @@
-