revise 4 elbow post #69
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: documentation deployment | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
env: | |
NODE_VER: '18.0.0' | |
jobs: | |
checks: | |
if: github.event_name != 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VER }} | |
cache: 'yarn' | |
- run: yarn install --frozen-lockfile | |
- run: yarn build | |
gh-release: | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VER }} | |
cache: 'yarn' | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }} | |
- name: Release to GitHub Pages | |
env: | |
USE_SSH: true | |
GIT_USER: alzafacon | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Fidel Coria" | |
yarn install --frozen-lockfile | |
yarn deploy |