Skip to content

Instantly share code, notes, and snippets.

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