feat: workflow

This commit is contained in:
TrèsAbhi committed 2025-05-31 11:47:30 -05:00
1 parent 8c14c3d093
commit 67ce4815df
1 file changed
+10 -7
+10 -7
View File
@@ -26,13 +26,17 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_TOKEN }}
- uses: oven-sh/setup-bun@v1
- uses: actions/configure-pages@v5
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Configure pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: bun install
@@ -46,13 +50,12 @@ jobs:
path: dist/website
deploy-github-pages:
if: ${{ github.ref == 'refs/heads/main' }}
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
environment:
name: Production
url: ${{ steps.deployment.outputs.page_url }}
if: >
(github.repository == 'tresabhi/blitzkit' && github.ref == 'refs/heads/main') ||
(github.repository == 'blitzkit/host-redux' && github.ref == 'refs/heads/ue4')
steps:
- name: Deploy to GitHub Pages