Skip to content

Commit

Permalink
ci: update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed Mar 30, 2024
1 parent 2e3f862 commit 43fb69d
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
name: Deploy Angular SPA to GitHub Pages

on:
push:
branches:
push:
branches:
- master

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Build
run: |
npm install -g @angular/cli
npm install
ng build --prod --base-href=""
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v2
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BASE_BRANCH: master
BRANCH: gh-pages
FOLDER: dist/git-catalogue
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js 16.15.1
uses: actions/setup-node@v1
with:
node-version: '16.15.1'
- name: Build 🔨
run: |
npm install -g @angular/cli
npm install
ng build --prod --base-href=""
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/git-catalogue

0 comments on commit 43fb69d

Please sign in to comment.