Skip to content

Commit

Permalink
Merge pull request #11 from MarkE16/deploy_setup
Browse files Browse the repository at this point in the history
Deploy setup
  • Loading branch information
MarkE16 authored Nov 22, 2024
2 parents 5c74f68 + a629b1d commit c48f6f3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Deploy to Netlify

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Build Project
run: pnpm run build

- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: ./build
production-branch: main
deploy-message: ${{ github.event.head_commit.message }}
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 comments on commit c48f6f3

Please sign in to comment.