Skip to content

Merge pull request #48 from razafindratsiza/hero-section-cover #36

Merge pull request #48 from razafindratsiza/hero-section-cover

Merge pull request #48 from razafindratsiza/hero-section-cover #36

Workflow file for this run

name: Build and Deploy in Dev Mode
on:
push:
branches: [ "main"]
jobs:
# Build Job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 20.12.0
- name: Install Dependencies
run: npm install
- name: Build Project
run: npm run build
- name: Upload artifact to enable deployment
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./dist
# Deploy Job
deploy:
# Add a dependency to the build job
needs: build
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: production-files
path: ./dist
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.CI_CD_TOKEN }}
publish_dir: ./dist