Skip to content

Commit

Permalink
Update deploy.yml actions
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainCodeman authored Aug 28, 2024
1 parent 966a8ea commit b1b5c84
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
with:
static_site_generator: sveltekit

- name: Build
run: pnpm run build

- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
# this should match the `pages` option in your adapter-static options
path: 'build/'
Expand All @@ -67,4 +68,4 @@ jobs:
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit b1b5c84

Please sign in to comment.