From 7a84bd0337d1aaa9804357ab8251e4393b3168b4 Mon Sep 17 00:00:00 2001 From: ethanfox Date: Sun, 14 Jul 2024 13:13:03 -0500 Subject: [PATCH] Changed the deploy action...again --- .github/workflows/deploy.yml | 38 ++++++++++++++++-------------------- vitest.config.ts | 1 + 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a2c8c82..d8b538b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,29 +1,25 @@ -name: Deploy to Github Pages +name: Deploy to GitHub Pages + on: push: - branches: - - develop + branches: [main] # or your default branch jobs: deploy: - name: Deploy Application runs-on: ubuntu-latest steps: - - name: Checkout Repo - uses: actions/checkout@master - - name: Create Node Environment - uses: actions/setup-node@v1 - with: - node-version: 10.x - - name: Install Packages and Build Application + - uses: actions/checkout@v3 + + - name: Install Bun + uses: oven-sh/setup-bun@v1 + + - name: Install and Build run: | - npm install -g @vue - npm install - npm build - - name: Deploy - uses: s0/git-publish-subdir-action@develop - env: - REPO: self - BRANCH: master - FOLDER: dist - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + bun install + bun run build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist # Adjust if your build output is elsewhere diff --git a/vitest.config.ts b/vitest.config.ts index b8cd3c7..64c8e30 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -7,6 +7,7 @@ import path from "path"; export default mergeConfig( viteConfig, defineConfig({ + base: "/art-institute-chicago/", plugins: [vue()], resolve: { alias: {