From 43fb69d832399c6f208e5ed58afb43875a4a1a48 Mon Sep 17 00:00:00 2001 From: Helias Date: Sat, 30 Mar 2024 23:04:39 +0100 Subject: [PATCH] ci: update github action --- .github/workflows/main.yml | 45 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 25a651b..a21d944 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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