Update README.md #94
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: Gatsby Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the current code | |
uses: actions/[email protected] | |
- name: Setup the git user as the Actions user | |
uses: fregante/setup-git-user@v1 | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' # Keep Node.js 14 as required | |
- name: Install dependencies with npm ci | |
run: npm ci | |
- name: Install Gatsby CLI | |
run: npm install -g [email protected] | |
- name: Install the gh-pages CLI | |
run: npm install -g gh-pages | |
- name: Build and deploy | |
env: | |
TOKEN: ${{ secrets.token_secret_deploy }} | |
run: | | |
gatsby build --prefix-paths && gh-pages -d public -r https://git:[email protected]/LinkedEarth/LeapFROGS.git |