-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into legends-quest
- Loading branch information
Showing
1,069 changed files
with
21,165 additions
and
168,086 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
22 changes: 12 additions & 10 deletions
22
.github/workflows/content-pack.yml → .github/workflows/content.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 |
---|---|---|
@@ -1,35 +1,37 @@ | ||
name: Pack Content | ||
name: Verify Content | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
branches: [ main, live ] | ||
paths: | ||
- '.github/workflows/content-pack.yml' | ||
- '.github/workflows/content.yml' | ||
- 'data/src/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
pack: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
version: 10 | ||
run_install: false | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22.x' | ||
cache: 'pnpm' | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm i | ||
wget https://github.com/2004scape/RuneScriptCompiler/releases/latest/download/RuneScriptCompiler.jar | ||
- run: pnpm i | ||
|
||
- name: Validate and Build Cache | ||
- name: Pack | ||
run: npm run build |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
name: Verify Engine Code | ||
|
||
on: | ||
pull_request: | ||
push: | ||
paths: | ||
- '.github/workflows/engine.yml' | ||
- 'src/**' | ||
- 'tools/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
verify: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
version: 10 | ||
run_install: false | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22.x' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm i | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Compile | ||
run: npx tsx | ||
|
||
- name: Test | ||
run: npm test |
2 changes: 1 addition & 1 deletion
2
...hub/workflows/pr-conventional-commits.yml → .github/workflows/pr-convention.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
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,39 @@ | ||
name: Pack Content | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
pack: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
version: 10 | ||
run_install: false | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22.x' | ||
cache: 'pnpm' | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- run: pnpm i | ||
|
||
- name: Pack | ||
run: npm run build | ||
|
||
- name: Upload Packed Data | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: packed | ||
path: data/pack | ||
retention-days: 1 |
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,62 @@ | ||
name: Deploy World | ||
env: ${{ secrets }} | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
environment: | ||
required: true | ||
type: string | ||
|
||
# pm2 start npm --name "w1-maintenance" -- run maintenance | ||
# pm2 start npm --name "w2-maintenance" -- run maintenance | ||
# pm2 start npm --name "w1-server" --kill-timeout 600000 -- run quickstart | ||
# pm2 start npm --name "w2-server" --kill-timeout 600000 -- run quickstart | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: ${{ inputs.environment}} | ||
|
||
steps: | ||
- name: Download Packed Data | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: packed | ||
|
||
- name: Shutdown World | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
port: ${{ secrets.PORT }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.KEY }} | ||
script: | | ||
source ~/.bashrc | ||
cd ${{ secrets.DIR }} | ||
git pull | ||
pnpm i | ||
pm2 stop ${{ secrets.PROCESS }} | ||
pm2 start ${{ secrets.MAINT_PROCESS }} | ||
- name: Update Content | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
port: ${{ secrets.PORT }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.KEY }} | ||
source: "client,server" | ||
target: ${{ secrets.DIR }}/data/pack | ||
rm: true | ||
|
||
- name: Start World | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
port: ${{ secrets.PORT }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.KEY }} | ||
script: | | ||
pm2 stop ${{ secrets.MAINT_PROCESS }} | ||
pm2 start ${{ secrets.PROCESS }} |
Oops, something went wrong.