Skip to content

Commit

Permalink
ci: update main.yml for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed Apr 3, 2024
1 parent 0ae4f47 commit 33c4086
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,28 @@ on:
branches:
- master

permissions:
contents: write

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

0 comments on commit 33c4086

Please sign in to comment.