Last active
April 30, 2020 19:26
-
-
Save m-b-davis/3665a1c712590af79ce7c9e36bdd3980 to your computer and use it in GitHub Desktop.
Surge Deployment Workflow
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: 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