Skip to content

Instantly share code, notes, and snippets.

@crrmacarse
Created January 28, 2020 07:34
Show Gist options
  • Save crrmacarse/d79bbbfe325fe4684d500c2fff308eb6 to your computer and use it in GitHub Desktop.
Save crrmacarse/d79bbbfe325fe4684d500c2fff308eb6 to your computer and use it in GitHub Desktop.
name: Release
on:
push:
branches:
- source
env:
NODE_ENV: production
PUBLIC_URL: http://crrmacarse.github.io/
GA_TRACKING_CODE: ${{ secrets.GA_TRACKING_CODE }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.0.0
- name: Use node 12
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: install
run: npm install
- name: build
run: npm run prod
# https://babeljs.io/docs/en/next/babel-node.html#not-meant-for-production-use
# - name: build sitemap
# run: npm run sitemap
- name: copy
run: npm run copy
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: master
FOLDER: dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment