From d45d853267f573a68101a5bb97bfc1e731aed790 Mon Sep 17 00:00:00 2001 From: SHAcollision Date: Wed, 10 Jul 2024 16:29:24 +0200 Subject: [PATCH] Add deploy workflow --- .github/workflows/deploy.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..49e9ae2 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,36 @@ +name: Build and Deploy Quartz Site + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: "21" + + - name: Install dependencies + run: | + cd quartz + npm install + + - name: Build site + run: | + cd quartz + npm run build + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: quartz/public + ssh-key: ${{ secrets.DEPLOY }}