Merge pull request #65 from mosteirodelandim/languags #5
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 to Netlify | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code | |
- uses: actions/checkout@v3 | |
# Install proper version of node | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
# Install v3.7.1 of gatsby-cli | |
- run: npm install -g [email protected] | |
# Install project dependencies | |
- run: npm install | |
# Run gatsby build | |
- run: gatsby build | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
publish-dir: './public' | |
production-branch: master | |
deploy-message: "Deploy from GitHub Actions" | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
timeout-minutes: 20 |