Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
FoggyMtnDrifter authored Nov 12, 2023
1 parent 9f8ccf0 commit 5f9957b
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,10 +42,6 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "gh-actions"
- name: Build website
run: |
npm run build
- name: Deploy website
run: |
npm run deploy

0 comments on commit 5f9957b

Please sign in to comment.