Skip to content

Merge pull request #162 from pedro-mealha/dependabot/github_actions/a… #162

Merge pull request #162 from pedro-mealha/dependabot/github_actions/a…

Merge pull request #162 from pedro-mealha/dependabot/github_actions/a… #162

Workflow file for this run

name: Main
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
environment: staging
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: |
npm install netlify-cli -g
npm ci
- name: Build
run: |
netlify build --context=staging
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- name: Deploy
run: |
netlify deploy -m '${{ github.sha }}'
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}