Skip to content

Commit

Permalink
update deployment from npm to bun
Browse files Browse the repository at this point in the history
  • Loading branch information
dipras committed Jun 11, 2024
1 parent 0728f9b commit a35e248
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
# Runs on pushes targetin
g the default branch
push:
branches: ['master']

Expand Down Expand Up @@ -30,22 +31,25 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci

- name: set up bun
uses: oven-sh/setup-bun@v1

- name: Install dependencied
run: bun install

- name: Build
run: npm run build
run: bun run build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: './dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit a35e248

Please sign in to comment.