Merge pull request #19 from salino3/small_fix_table-18 #23
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: 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 |