-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.04 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Staging Build and Deploy
# This workflow is triggered on a push to the development branch
on:
push:
branches:
- development
# 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:
# Checkout
- name: Checkout Code 🛎️
uses: actions/checkout@v4
# Setup Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
# Install Dependencies and Build App
- name: Build Angular App 🔧 # Successful
# working-directory: angular-starter/browser
run: |
npm ci
npm run build --configuration=development
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/angular-supastarter/browser # The folder the action should deploy.