Skip to content

Commit

Permalink
fix: update platform
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Dec 14, 2022
1 parent 45451a9 commit 710f800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ jobs:
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: replace version
run: sed -i "s/SONIC_VERSION/${{ steps.previoustag.outputs.tag }}/g" pom.xml
- name: replace platform
run: sed -i "s/SONIC_PLATFORM/${{ matrix.platform }}/g" pom.xml
- name: Set up Maven Central Repo
uses: actions/setup-java@v1
with:
Expand All @@ -108,7 +110,7 @@ jobs:
- name: Publish to Maven Central Repo
uses: samuelmeuli/action-maven-publish@v1
with:
maven_args: -Dmaven.test.skip=true -Dplatform=${{ matrix.platform }}
maven_args: -Dmaven.test.skip=true
gpg_private_key: ${{ secrets.GPG_SECRET }}
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
nexus_username: ${{ secrets.OSSRH_USER }}
Expand Down
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<url>https://github.com/SonicCloudOrg/sonic-vision-core</url>

<properties>
<platform>windows-x86_64</platform>
<!-- [ "windows-x86", "windows-x86_64", "macosx-arm64", "macosx-x86_64", "linux-arm64", "linux-x86", "linux-x86_64" ]-->
<platform>SONIC_PLATFORM</platform>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -53,7 +54,7 @@
<developers>
<developer>
<name>SonicCloudOrg</name>
<email>291028775@qq.com</email>
<email>soniccloudorg@163.com</email>
<timezone>+8</timezone>
<roles>
<role>Developer</role>
Expand Down

0 comments on commit 710f800

Please sign in to comment.