mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
feat: workflow
This commit is contained in:
1 parent
8c14c3d093
commit
67ce4815df
1 file changed
+10
-7
@@ -26,13 +26,17 @@ jobs:
|
|||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- uses: oven-sh/setup-bun@v1
|
- name: Setup Bun
|
||||||
- uses: actions/configure-pages@v5
|
uses: oven-sh/setup-bun@v1
|
||||||
|
|
||||||
|
- name: Configure pages
|
||||||
|
uses: actions/configure-pages@v5
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
@@ -46,13 +50,12 @@ jobs:
|
|||||||
path: dist/website
|
path: dist/website
|
||||||
|
|
||||||
deploy-github-pages:
|
deploy-github-pages:
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
environment:
|
if: >
|
||||||
name: Production
|
(github.repository == 'tresabhi/blitzkit' && github.ref == 'refs/heads/main') ||
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
(github.repository == 'blitzkit/host-redux' && github.ref == 'refs/heads/ue4')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
|
|||||||
Reference in new issue
Block a user