faster loading by desactivating a call to googleapis in index.html #495
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
# This is a basic workflow to deploy the project to the website | |
name: Deploy to Github Pages | |
# Triggers the workflow on push or pull request but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- v* | |
jobs: | |
# Build the project | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Using Node.js ${{ matrix.node-version }} | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
node-version: ${{ matrix.node-version }} | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
- name: Build | |
run: | | |
npm clean-install | |
npm run build | |
# Deploy | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
# Deployed to the organisation website | |
REPOSITORY_NAME: tableaunoir/tableaunoir.github.io | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
BRANCH: main | |
# This is the folder the website is generated | |
FOLDER: dist | |
CLEAN: true |