-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build/test on pull_request and deploy on tags
- Loading branch information
Showing
5 changed files
with
54 additions
and
28 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Deploy | ||
on: workflow_call | ||
jobs: | ||
deploy: | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: Pull Request Created | ||
on: pull_request | ||
jobs: | ||
build-test: | ||
uses: ./.github/workflows/build-test.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Pushed | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
jobs: | ||
build-test: | ||
uses: ./.github/workflows/build-test.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Tag Created | ||
on: | ||
push: | ||
tags: | ||
- '**' | ||
jobs: | ||
build-test: | ||
uses: ./.github/workflows/build-test.yml | ||
deploy: | ||
needs: build-test | ||
uses: ./.github/workflows/deploy.yml |