Skip to content

Commit

Permalink
workflow revamp [temp]
Browse files Browse the repository at this point in the history
  • Loading branch information
chearon committed Apr 28, 2024
1 parent 3db37f9 commit 70d720d
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build and test
on: push
on: workflow_call
jobs:
node:
runs-on: ubuntu-latest
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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
5 changes: 5 additions & 0 deletions .github/workflows/on_pull_request.yml
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
8 changes: 8 additions & 0 deletions .github/workflows/on_push.yml
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
10 changes: 10 additions & 0 deletions .github/workflows/on_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Tag Created
on:
push:
tags:
- '**'
jobs:
build-test:
uses: ./.github/workflows/build-test.yml
deploy:
uses: ./.github/workflows/deploy.yml

0 comments on commit 70d720d

Please sign in to comment.