Skip to content

Commit

Permalink
test and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ragokan committed Sep 25, 2024
1 parent eefc220 commit e83d6fa
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy Document site to Pages
# Workflow for testing and building Bunicorn,
# then deploying a VitePress site to GitHub Pages
name: Test Bunicorn and Deploy Docs Site

on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
# Runs on pushes targeting the `main` branch
push:
branches: [main]

Expand All @@ -24,8 +23,8 @@ concurrency:
cancel-in-progress: false

jobs:
# Build job
build:
# Build and test job
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -41,6 +40,8 @@ jobs:
uses: actions/configure-pages@v3
- name: Install dependencies
run: bun install
- name: Run tests
run: bun run test
- name: Build with VitePress
run: |
bun run docs:build
Expand All @@ -55,10 +56,10 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
needs: build-and-test
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2

0 comments on commit e83d6fa

Please sign in to comment.