-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.19 KB
/
development.yml
File metadata and controls
47 lines (38 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Deploy Dev
on:
push:
branches:
- master
jobs:
deployment:
name: Deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: Roblox/setup-foreman@v3
with:
token: ${{ secrets.TOKEN }}
allow-external-github-orgs: true
- name: Report tool versions
run: rojo --version
- name: Generate version.lua
run: |
VERSION=$(git describe --tags --abbrev=0)
SHORT_COMMIT=$(git rev-parse --short HEAD)
echo "return {" > src/shared/version.luau
echo " version = '${VERSION}'," >> src/shared/version.luau
echo " commit = '${SHORT_COMMIT}'," >> src/shared/version.luau
echo " branch = '${GITHUB_REF##*/}'," >> src/shared/version.luau
echo "}" >> src/shared/version.luau
- name: View version.lua
run: cat src/shared/version.luau
# - name: View src content
# run: |
# ls src/ -l
# ls ./src -l
- name: Deploy
run: rojo upload --api_key "$API_KEY" --universe_id 7672663738 -v --asset_id 107505894422783 # SET PLACE AND UNIVERSE FOR DEVELOPMENT!
env:
API_KEY: ${{ secrets.API_KEY }}