Skip to content

feat: add netlify deployment workflows #1

feat: add netlify deployment workflows

feat: add netlify deployment workflows #1

---
name: Deploy a preview to netlify
on:
workflow_call:
inputs:
app_name:
type: string
required: true
artifact_name:
type: string
required: true
environment:
type: string
required: true
deploy-staging-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact_name }}
path: ./build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3
with:

Check failure on line 27 in .github/workflows/netlify-deploy-preview-v1.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/netlify-deploy-preview-v1.yml

Invalid workflow file

You have an error in your yaml syntax on line 27
publish-dir: "./build"
production-deploy: false
deploy-message: "Deploy from GitHub Actions"
netlify-config-path: ./netlify.toml
alias: {{ inputs.app_name }}-preview-${{ inputs.environment }}-${{ github.event.number }}
enable-pull-request-comment: true
overwrites-pull-request-comment: true
enable-commit-comment: false
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 5