File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
-
8
7
jobs :
9
8
build :
10
9
runs-on : ubuntu-latest
11
10
steps :
12
11
- name : Checkout
13
- uses : actions/checkout@master
12
+ uses : actions/checkout@v4
14
13
with :
15
14
path : " src"
16
15
17
16
- name : Checkout builds
18
- uses : actions/checkout@master
17
+ uses : actions/checkout@v4
19
18
with :
20
19
ref : " builds"
21
20
path : " builds"
22
21
23
- - name : Checkout Aliucord
24
- uses : actions/checkout@master
25
- with :
26
- repository : " Aliucord/Aliucord"
27
- path : " repo"
28
-
29
22
- name : Setup JDK 11
30
- uses : actions/setup-java@v1
23
+ uses : actions/setup-java@v4
31
24
with :
32
25
java-version : 11
26
+ distribution : temurin
33
27
34
- - name : Setup Android SDK
35
- uses : android- actions/setup-android@v2
28
+ - name : Setup Gradle
29
+ uses : gradle/ actions/setup-gradle@v4
36
30
37
- - name : Build Plugins
31
+ - name : Build plugins
38
32
run : |
39
33
cd $GITHUB_WORKSPACE/src
40
- chmod +x gradlew
41
34
./gradlew make generateUpdaterJson
42
- cp **/build/*.zip $GITHUB_WORKSPACE/builds
35
+ cp plugin/ **/build/*.zip $GITHUB_WORKSPACE/builds
43
36
cp build/updater.json $GITHUB_WORKSPACE/builds
44
37
45
38
- name : Push builds
46
39
run : |
47
40
cd $GITHUB_WORKSPACE/builds
48
41
git config --local user.email "[email protected] "
49
42
git config --local user.name "GitHub Actions"
50
- git add .
43
+ git add *
51
44
git commit -m "Build $GITHUB_SHA" || exit 0 # do not error if nothing to commit
52
45
git push
You can’t perform that action at this time.
0 commit comments