This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
Daisyui update as well #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI / CD for Angular | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npx nx lint | |
#- name: Tests | |
# run: npm run test:prod | |
- name: Build | |
run: npx nx build --base-href=https://martinspire.github.io/f1app/ | |
- name: Deploy to GitHub Pages | |
uses: crazy-max/[email protected] | |
with: | |
target_branch: gh-pages | |
build_dir: dist/apps/formule1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |