diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml deleted file mode 100644 index e4d028f..0000000 --- a/.github/workflows/astro.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Deploy Astro site to Pages - -on: - push: - branches: ["master"] - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: false - -env: - BUILD_PATH: "." - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Bun v2 - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - - name: Cache Bun dependencies - uses: actions/cache@v4 - with: - path: | - ~/.bun/install/cache - ${{ env.BUILD_PATH }}/node_modules - key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} - restore-keys: | - ${{ runner.os }}-bun- - - - name: Setup GitHub Pages - id: pages - uses: actions/configure-pages@v5 - - - name: Install dependencies (with Bun) - run: bun install - working-directory: ${{ env.BUILD_PATH }} - - - name: Build Astro site (with Bun) - run: | - bun run astro build \ - --site "${{ steps.pages.outputs.origin }}" \ - --base "${{ steps.pages.outputs.base_path }}" - working-directory: ${{ env.BUILD_PATH }} - - - name: Upload build artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ${{ env.BUILD_PATH }}/dist - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: build - runs-on: ubuntu-latest - name: Deploy - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4