Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit 4078143

Browse files
Workflow QoL improvements (#237)
* Fix workflow trigger events - Renamed legacy deployment file - Removed on push trigger on legacy deployment - Added on push trigger on the new deployment trigger Signed-off-by: RadiatedExodus <[email protected]> * Have the deploy workflows use the build workflow file instead --------- Signed-off-by: RadiatedExodus <[email protected]>
1 parent 1f11104 commit 4078143

File tree

4 files changed

+26
-55
lines changed

4 files changed

+26
-55
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build
22
on:
33
workflow_dispatch:
4+
workflow_call:
45
pull_request:
56
jobs:
67
build:

.github/workflows/deploy(legacy).yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,21 @@
11
name: Build and Deploy
22
on:
3+
push:
4+
branches:
5+
- main
36
workflow_dispatch:
47
jobs:
58
build:
6-
name: Build and Deploy
7-
runs-on: ubuntu-latest
8-
steps:
9-
- name: Checkout Repository
10-
uses: actions/checkout@v2
11-
with:
12-
fetch-depth: '0'
13-
persist-credentials: false
14-
submodules: 'recursive'
15-
- name: Setup Node
16-
uses: actions/setup-node@v2-beta
17-
with:
18-
node-version: '22'
19-
- name: Build
20-
run: npm install && npm run build
21-
- name: Upload static files as artifact
22-
id: deployment
23-
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
24-
with:
25-
path: docs
9+
name: Build
10+
uses: ./.github/workflows/build.yml
2611
deploy:
27-
environment:
28-
name: Deploy
12+
name: Deploy
13+
runs-on: ubuntu-latest
14+
needs: build
2915
permissions:
3016
contents: read
3117
pages: write
3218
id-token: write
33-
runs-on: ubuntu-latest
34-
needs: build
3519
steps:
3620
- name: Deploy to GitHub Pages
3721
id: deployment
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build And Deploy (Legacy)
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
build:
6+
name: Build
7+
uses: ./.github/workflows/build.yml
8+
deploy:
9+
name: Deploy
10+
steps:
11+
- name: Deploy to GitHub Pages (gh-pages branch)
12+
uses: JamesIves/[email protected]
13+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main'}}
14+
with:
15+
BRANCH: gh-pages
16+
FOLDER: docs
17+
CLEAN: true

0 commit comments

Comments
 (0)