Skip to content

Commit 66c992b

Browse files
ci: add release ci builds for mantle
1 parent bcab60b commit 66c992b

File tree

10 files changed

+558
-19265
lines changed

10 files changed

+558
-19265
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: CI
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- develop
84
pull_request:
95
branches:
106
- main
@@ -20,17 +16,21 @@ jobs:
2016
strategy:
2117
matrix:
2218
node-version: [20]
19+
2320
steps:
2421
- uses: actions/checkout@v4
22+
2523
- name: Install pnpm
2624
uses: pnpm/action-setup@v3
2725
with:
2826
version: 9
27+
2928
- name: Use Node.js ${{ matrix.node-version }}
3029
uses: actions/setup-node@v4
3130
with:
3231
node-version: ${{ matrix.node-version }}
3332
cache: pnpm
33+
3434
- name: Install dependencies
3535
run: pnpm install
3636

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Release Develop
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
paths-ignore:
8+
- README.md
9+
- LICENSE.md
10+
- 'scripts/**'
11+
- '.github/**'
12+
13+
permissions:
14+
contents: write
15+
packages: write
16+
17+
concurrency:
18+
group: development_environment
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Install pnpm
29+
uses: pnpm/action-setup@v3
30+
with:
31+
version: 9
32+
33+
- name: Use Node.js 20
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
cache: pnpm
38+
39+
- name: Install dependencies
40+
run: pnpm install
41+
42+
- name: Compile
43+
run: pnpm build-dev --verbose
44+
45+
- name: Build project
46+
run: rojo build ./default.project.json --output place.rbxlx
47+
48+
- name: Upload place
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: place
52+
path: place.rbxlx
53+
54+
deploy:
55+
runs-on: ubuntu-latest
56+
environment: development
57+
needs: build
58+
59+
steps:
60+
- uses: actions/checkout@v4
61+
- uses: ok-nick/setup-aftman@v0.4.2
62+
with:
63+
token: ${{ secrets.GITHUB_TOKEN }}
64+
65+
- name: Download place artifact
66+
uses: actions/download-artifact@v3
67+
with:
68+
name: place
69+
70+
- name: Deploy place
71+
run: mantle deploy --environment development

.github/workflows/release.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types:
6+
- released
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
packages: write
12+
13+
concurrency:
14+
group: production_environment
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v3
26+
with:
27+
version: 9
28+
29+
- name: Use Node.js 20
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 20
33+
cache: pnpm
34+
35+
- name: Install dependencies
36+
run: pnpm install
37+
38+
- name: Compile
39+
run: pnpm build-prod --verbose
40+
41+
- name: Build project
42+
run: rojo build ./build.project.json --output place.rbxlx
43+
44+
- name: Upload place
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: place
48+
path: place.rbxlx
49+
50+
deploy:
51+
runs-on: ubuntu-latest
52+
environment: production
53+
needs: build
54+
55+
steps:
56+
- uses: actions/checkout@v4
57+
- uses: ok-nick/setup-aftman@v0.4.2
58+
with:
59+
token: ${{ secrets.GITHUB_TOKEN }}
60+
61+
- name: Download place artifact
62+
uses: actions/download-artifact@v3
63+
with:
64+
name: place
65+
66+
- name: Deploy game
67+
run: mantle deploy --allow-purchases --environment production

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ flamework.build
1111
sourcemap.json
1212
*.rbxl.lock
1313
*.rbxl
14+
*.rbxlx
1415

1516
# Bundled eslint config
1617
*.mjs

0 commit comments

Comments
 (0)