File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed
Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change 4040 with :
4141 java-version : ' 17'
4242 distribution : ' temurin'
43+ server-id : github
4344
4445 - name : Set up Android SDK
4546 uses : android-actions/setup-android@v3
@@ -70,24 +71,15 @@ jobs:
7071 - name : Print release
7172 run : echo "Latest Release is ${{ steps.get-release-info.outputs.result }}"
7273
73- - name : Install package with Maven
74- run : |
75- FILE="-Dfile=./build/mobile.aar"
76- mvn install:install-file $FILE -DgroupId=land.fx -DartifactId=fulamobile -Dversion=${{ steps.get-release-info.outputs.result }} -Dpackaging=aar -DgeneratePom=true
77-
78- - name : Copy pom.xml and AndroidManifest.xml to build directory
79- run : |
80- mkdir -p ./build/src/main
81- cp ./.github/pom.xml ./build/pom.xml
82- cp ./.github/AndroidManifest.xml ./build/src/main/AndroidManifest.xml
83-
84- - name : Prepare for Maven deployment
85- run : |
86- sed -i "s/\${release_version}/${{ steps.get-release-info.outputs.result }}/g" build/pom.xml
87-
8874 - name : Deploy to GitHub Packages
89- working-directory : ./build
9075 run : |
91- mvn deploy -Drelease_version=${{ steps.get-release-info.outputs.result }}
76+ mvn deploy:deploy-file \
77+ -Dfile=./build/mobile.aar \
78+ -DgroupId=land.fx \
79+ -DartifactId=fulamobile \
80+ -Dversion=${{ steps.get-release-info.outputs.result }} \
81+ -Dpackaging=aar \
82+ -DrepositoryId=github \
83+ -Durl=https://maven.pkg.github.com/functionland/go-fula
9284 env :
9385 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments