From 5f9957b599027c9ef2e0c57b0f10f7575290e5b5 Mon Sep 17 00:00:00 2001 From: Michael Kinder Date: Sun, 12 Nov 2023 14:41:56 -0500 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1cd735ec0..771aa3a10 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,21 +6,26 @@ on: branches: - master +permissions: + contents: read + pages: write + id-token: write + jobs: - deploy: + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Setup NodeJS - uses: actions/setup-node@v2 + - name: Checkout repo + uses: actions/checkout@v3 + - name: Install, build, and upload + uses: withastro/action@v1 with: - node-version: "20" - - - name: Install dependencies - run: | - npm install + node-version: 20 + deploy: + needs: build + runs-on: ubuntu-latest + steps: - name: Install SSH key env: SSH_AUTH_SOCK: /tmp/ssh_agent.sock @@ -37,10 +42,6 @@ jobs: git config --global user.email "actions@github.com" git config --global user.name "gh-actions" - - name: Build website - run: | - npm run build - - name: Deploy website run: | npm run deploy