dealjus 4bac4143e1
Some checks failed
Build and Deploy / build (push) Failing after 6s
go
2025-04-29 07:18:39 -07:00

43 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Build and Deploy
on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branchs name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22 # or whatever version you use
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10 # or your preferred version
- name: Install Dependencies
run: pnpm install
- name: Build Astro Site
run: pnpm run build
- name: Deploy to Server
run: rsync -avzP ./dist/ root@${{ secrets.SERVER_IP }}:/var/www/justin.deal/