-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into staging
- Loading branch information
Showing
5 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters