File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : CI
1+ name : Deploy Dev
22
33on :
44 push :
55 branches :
66 - master
77
88jobs :
9- ci :
9+ deployment :
1010 name : Deployment
1111 runs-on : ubuntu-latest
1212
@@ -36,12 +36,12 @@ jobs:
3636 - name : View version.lua
3737 run : cat src/shared/version.luau
3838
39- - name : View src content
40- run : |
41- ls src/ -l
42- ls ./src -l
39+ # - name: View src content
40+ # run: |
41+ # ls src/ -l
42+ # ls ./src -l
4343
4444 - name : Deploy
45- run : rojo upload --api_key "$API_KEY" --universe_id 7672663738 -v --asset_id 107505894422783
45+ run : rojo upload --api_key "$API_KEY" --universe_id 7672663738 -v --asset_id 107505894422783 # SET PLACE AND UNIVERSE FOR DEVELOPMENT!
4646 env :
4747 API_KEY : ${{ secrets.API_KEY }}
Original file line number Diff line number Diff line change 1+ name : Deploy Prod
2+
3+ # on:
4+ # push:
5+ # branches:
6+ # - master
7+
8+ on :
9+ push :
10+ tags :
11+ - ' v*' # Only run on semantic version tag
12+
13+ jobs :
14+ deployment :
15+ name : Deployment
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - uses : actions/checkout@v1
20+ with :
21+ submodules : true
22+
23+ - uses : Roblox/setup-foreman@v3
24+ with :
25+ token : ${{ secrets.TOKEN }}
26+ allow-external-github-orgs : true
27+
28+ - name : Report tool versions
29+ run : rojo --version
30+
31+ - name : Generate version.lua
32+ run : |
33+ VERSION=$(git describe --tags --abbrev=0)
34+ SHORT_COMMIT=$(git rev-parse --short=8 HEAD)
35+ echo "return {" > src/shared/version.luau
36+ echo " version = '${VERSION}'," >> src/shared/version.luau
37+ echo " commit = '${SHORT_COMMIT}'," >> src/shared/version.luau
38+ echo " branch = '${GITHUB_REF##*/}'," >> src/shared/version.luau
39+ echo "}" >> src/shared/version.luau
40+
41+ - name : View version.lua
42+ run : cat src/shared/version.luau
43+
44+ # - name: View src content
45+ # run: |
46+ # ls src/ -l
47+ # ls ./src -l
48+
49+ - name : Deploy
50+ run : rojo upload --api_key "$API_KEY" --universe_id 7672663738 -v --asset_id 107505894422783
51+ env :
52+ API_KEY : ${{ secrets.API_KEY }}
You can’t perform that action at this time.
0 commit comments