forked from mldangelo/personal-site
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 884 Bytes
/
github-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: GitHub Pages
on:
push:
branches: [ main ]
jobs:
depoy:
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
# Remove this line if you would like to skip using google analytics
REACT_APP_GA_TRACKING_ID: UA-68649021-1
# This is set automatically by github
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/mldangelo/personal-site.git
npm run deploy