Skip to content

Merge branch 'gh-pages' #10

Merge branch 'gh-pages'

Merge branch 'gh-pages' #10

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Salino3"
- name: Verify Git config
run: git config --list --show-origin
- name: Install dependencies
run: npm install
- name: Start JSON server
run: npm run json-server &
- name: Build
run: npm run build
- name: Deploy
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
npm run deploy