Skip to content

Commit

Permalink
Bun deploy to pages
Browse files Browse the repository at this point in the history
  • Loading branch information
limbero committed Mar 5, 2024
1 parent 98acbed commit 1b5f7ec
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/deploy-from-master.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
name: Deploy from master
name: Build and deploy to Github Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm install
npm run build
uses: actions/checkout@v4
- name: Bun Install and Build 🔧
uses: oven-sh/setup-bun@v1
run: bun install
run: bun run build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.
path: ./dist

# Deployment job
deploy:
environment:
name: github-pages
url: semestra.limbe.ro
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 1b5f7ec

Please sign in to comment.