forked from mldangelo/personal-site
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 924 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
32
name: GitHub Pages
on:
push:
branches: [ main ]
jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- 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