Removing GA temporarily #29
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: | |
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-147248267-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/julianjear/personal-site-1 | |
npm run deploy |