Skip to content

Merge pull request #15 from Cotatus/design/sheepyis-notfound#10 #15

Merge pull request #15 from Cotatus/design/sheepyis-notfound#10

Merge pull request #15 from Cotatus/design/sheepyis-notfound#10 #15

Workflow file for this run

name: Build and Deploy to Netlify
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
deploy:
runs-on: ubuntu-latest
timeout-minutes: 5
needs: build
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './dist'
production-branch: develop
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: '🚀 [Deploy] ${{ github.head_ref || github.ref_name }}: ${{ github.event.head_commit.message }}'
enable-pull-request-comment: true
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}