Skip to content

Commit

Permalink
ci: update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanChanges authored Nov 13, 2024
1 parent 4e7a0b2 commit 55dc8a3
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,35 @@ jobs:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache Black Hole
- name: Restore Blackhole
uses: actions/cache/restore@v4
with:
path: node_modules
path: |
node_modules
key: blackhole
- name: Restore cache
uses: actions/cache@v4
with:
path: |
dist
.nuxt
key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }}
restore-keys: |
${{ runner.os }}-nuxt-build-
# Pick your own package manager and build script
- run: bun install --locked
- name: Save Black Hole
- name: Save Cache
uses: actions/cache/save@v4
with:
path: node_modules
path: |
.nuxt
dist
key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }}
- name: Save Blackhole
uses: actions/cache/sa@v4
with:
path: |
node_modules
key: blackhole
- run: bun run build --preset github_pages
- name: Upload artifact
Expand Down Expand Up @@ -59,6 +77,18 @@ jobs:
with:
name: build-output
path: dist
- name: Setup Pages
uses: actions/configure-pages@v5
with:
# Automatically inject router.base in your Nuxt configuration file and set
# target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/).
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: nuxt
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- uses: actions/deploy-pages@v4
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 55dc8a3

Please sign in to comment.