Merge pull request #7 from samilieberman/refactor/header #21
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: GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Use Node 14 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: Install | |
run: npm ci | |
- name: Build and Deploy | |
env: | |
NODE_ENV: production | |
# This is set automatically by github | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.name "Automated" | |
git config user.email "[email protected]" | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/samilieberman/samilieberman.github.io.git | |
npm run deploy |