workflow revamp [temp] #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | ||
on: workflow_call | ||
jobs: | ||
deploy: | ||
uses: ./.github/workflows/test.yml | ||
needs: bun | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Bun v1 | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: 1 | ||
- run: bun install --frozen-lockfile | ||
- run: bun run build | ||
- run: bun run vite build --minify false --base dropflow/ | ||
- name: Upload site | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
name: github-pages | ||
path: dist/site/ | ||
- name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v4 |