File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11$Env: GOOS = " linux" ; $Env: GOARCH = " amd64"
2- & " ${ENV: USERPROFILE} \source\repos\GoPowered\bin\Release\net10.0\GoPowered.exe" build
3- cd .gopowered/ compile/ go
4- go build - buildvcs= false
5- cd ../ ../ ..
2+
63mkdir bin - ErrorAction Ignore
7- move .gopowered/ compile/ go/ go ./ bin/ removeLime - Force
8- git add ./ bin/ removeLime
4+
5+ function build ()
6+ {
7+ cd scripts/ $args
8+ & " ${ENV: USERPROFILE} \source\repos\GoPowered\bin\Release\net10.0\GoPowered.exe" build
9+ cd .gopowered/ compile/ go
10+ go build - buildvcs= false
11+ cd ../ ../ ..
12+ cd ../ ..
13+ move scripts/ $args / .gopowered/ compile/ go/ go ./ bin/ $args - Force
14+ git add ./ bin/ $args
15+ }
16+
17+ build removeLime
18+ build getjar
Original file line number Diff line number Diff line change 1+ package main
2+
3+ import "strings"
4+ import "os"
5+
6+ func main () {
7+ fp , err := os .Open ("build/libs" )
8+ if err != nil {
9+ panic (err )
10+ }
11+
12+ defer fp .Close ()
13+
14+ names , err := fp .Readdirnames (0 )
15+ if err != nil {
16+ panic (err )
17+ }
18+
19+ for _ , name := range names {
20+ if ! strings .Contains (name , "-sources" ) {
21+ print (name [:len (name ) - 4 ])
22+ return
23+ }
24+ }
25+
26+ os .Exit (1 )
27+ }
File renamed without changes.
Original file line number Diff line number Diff line change @@ -37,16 +37,26 @@ jobs:
3737 - name : Build with Gradle Wrapper
3838 run : " chmod u+x .actions/bin/removeLime; .actions/bin/removeLime; chmod u+x gradlew; ./gradlew build"
3939
40- # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
41- # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
42- #
43- # - name: Setup Gradle
44- # uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
45- # with:
46- # gradle-version: '8.9'
47- #
48- # - name: Build with Gradle 8.9
49- # run: gradle build
40+ - name : Define uploads
41+ run : |
42+ chmod u+x .actions/bin/getjar
43+ echo "jarPath=$(.actions/bin/getjar)" >> $GITHUB_ENV
44+
45+ - name : Upload the runtime artifact
46+ uses : actions/upload-artifact@v2.3.0
47+ with :
48+ name : ${{ env.jarPath }}.jar
49+ path : build/libs/${{ env.jarPath }}.jar
50+ if-no-files-found : error
51+ retention-days : 5
52+
53+ - name : Upload the sources artifact
54+ uses : actions/upload-artifact@v2.3.0
55+ with :
56+ name : ${{ env.jarPath }}-sources.jar
57+ path : build/libs/${{ env.jarPath }}-sources.jar
58+ if-no-files-found : error
59+ retention-days : 5
5060
5161 dependency-submission :
5262
You can’t perform that action at this time.
0 commit comments