Skip to content

github pages fix

github pages fix #103

Workflow file for this run

name: Deploy Website
on:
push:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server."
- uses: actions/checkout@v2
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: "16.x"
cache: "npm"
- run: npm install --force
- run: npm install --save-dev @angular/cli
- run: npm run lint
- run: ls -al
- run: npm run build:ci
- run: pwd
- run: ls -al dist/Solar-Car-Website
- name: Archive build
if: success()
uses: actions/upload-artifact@v4
with:
name: deploy_dist
path: dist
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
persist-credentials: true
- name: Download build
uses: actions/download-artifact@v4
with:
name: deploy_dist
- run: pwd
- run: ls -al dist/Solar-Car-Website
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist