-
Notifications
You must be signed in to change notification settings - Fork 1
114 lines (85 loc) · 2.7 KB
/
CI.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Releases
on: push
jobs:
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Main
uses: actions/checkout@v3
- name: Setup Foreman
uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Foreman Toolchains
run: foreman install
- name: Install Dependencies
run: wally install
- name: Create Packages Directory
run: mkdir -p Packages
- name: Run Stylua
run: stylua lib --check
- name: Run Selene
run : selene lib
- name: Build pack.rbxm
run: rojo build -o pack.rbxm pack.project.json
- name: Upload pack.rbxm as build artifact
uses: actions/upload-artifact@v3
with:
name: hello_world
path: pack.rbxm
- name: Get Release from wally.toml
uses: SebRollen/[email protected]
id: read_toml
with:
file: 'wally.toml'
field: 'package.version'
- name: Publish to Wally
env:
WALLY_TOKEN: ${{ secrets.WALLY_AUTH_TOKEN }}
run: |
mkdir =p ~/.wally
printf "[tokens]\n\"https://api.wally.run/\" = \"%s\"" "$WALLY_TOKEN" >> ~/.wally/auth.toml
wally publish
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.read_toml.outputs.value }}
tag_name: ${{ steps.read_toml.outputs.value }}
generate_release_notes: true
files: pack.rbxm
draft: true
development:
if: ${{ github.ref == 'refs/heads/dev' }}
runs-on: ubuntu-latest
steps:
- name: Checkout development
uses: actions/checkout@v3
- name: Setup Foreman
uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Foreman Toolchains
run: foreman install
- name: Run Stylua
run: stylua lib --check
- name: Run Selene
run : selene lib
- name: Install Dependencies
run: wally install
- name: Create Packages Directory
run: mkdir -p Packages
- name: Build test-pack.rbxm
run: rojo build -o test-pack.rbxm pack.project.json
- name: Build testing place
run: rojo build -o testing.rbxl testing.project.json
- name: Upload test-pack.rbxm as build artifact
uses: actions/upload-artifact@v3
with:
name: hello_world
path: test-pack.rbxm
- name: Upload testing.rbxl as build artifact
uses: actions/upload-artifact@v3
with:
name: hello_world
path: testing.rbxl