Skip to content

Commit 7bec9a9

Browse files
committed
Add workflow for production release
1 parent d3593ac commit 7bec9a9

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/release.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Github worklfow that runs an ubuntu job to build and release the project when pushed to production
2+
3+
name: Release
4+
5+
on:
6+
push:
7+
branches:
8+
- production
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
name: Checkout code
16+
- uses: ok-nick/[email protected]
17+
name: Install aftman
18+
- uses: actions/setup-node@v3
19+
name: Install node
20+
with:
21+
node-version: "18"
22+
- uses: pnpm/action-setup@v2
23+
with:
24+
version: latest
25+
- name: Install dependencies
26+
run: pnpm install && aftman install
27+
- name: Build
28+
run: mkdir -p out && pnpm transpile && pnpm build
29+
- name: Upload build
30+
uses: actions/upload-artifact@v3
31+
with:
32+
name: Control-Client
33+
path: out/Control-Client.rbxm

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"transpile": "rbxtsc",
8-
"build": "rojo build -o out/Control-Client.rbxm",
9-
"watch": "rbxtsc -w"
8+
"build": "rojo build -o out/Control-Client.rbxm"
109
},
1110
"keywords": [],
1211
"author": "",

0 commit comments

Comments
 (0)