Skip to content

Instantly share code, notes, and snippets.

@benawad
Created August 3, 2020 18:54
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 benawad/fdbcade50fa67862cc892da86422e92a to your computer and use it in GitHub Desktop.
Save benawad/fdbcade50fa67862cc892da86422e92a to your computer and use it in GitHub Desktop.
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: yarn test
- run: yarn build
# make sure to add netlify-cli in your package.json
- name: Send to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: npx netlify deploy --dir=./public -p -m $GITHUB_REF --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment