1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- name: Deploy static content to Pages
- on:
-
- push:
- branches: ["main"]
-
- workflow_dispatch:
- permissions:
- contents: read
- pages: write
- id-token: write
- concurrency:
- group: "pages"
- cancel-in-progress: false
- jobs:
- build_site:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Install Bun
- run: |
- curl -fsSL https://bun.sh/install | bash
- echo 'export PATH="$HOME/.bun/bin:$PATH"' >> $GITHUB_ENV
- - name: Install dependencies
- run: bun install
- - name: build
- env:
- BASE_PATH: '/${{ github.event.repository.name }}'
- run: |
- bun run build
- - name: Upload Artifacts
- uses: actions/upload-pages-artifact@v3
- with:
-
- path: 'build/'
- deploy:
- needs: build_site
- runs-on: ubuntu-latest
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- steps:
- - name: Deploy to GitHub Pages
- id: deployment
- uses: actions/deploy-pages@v4
|