Skip to content

Instantly share code, notes, and snippets.

@benawad
Created August 3, 2020 18:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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