Skip to content

Instantly share code, notes, and snippets.

@m-b-davis
Last active April 30, 2020 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m-b-davis/3665a1c712590af79ce7c9e36bdd3980 to your computer and use it in GitHub Desktop.
Save m-b-davis/3665a1c712590af79ce7c9e36bdd3980 to your computer and use it in GitHub Desktop.
Surge Deployment Workflow
name: deploy-master
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
- name: Surge deploy
env:
CI: false # CRA treats warnings as errors in CI - re-enable if needed
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
run: |
export
npm run deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment