forked from mldangelo/personal-site
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 967 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
33
34
name: GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deployment:
runs-on: ubuntu-20.04
timeout-minutes: 5
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 "[email protected]"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/mldangelo/personal-site.git
npm run deploy