Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Aug 14, 2024
1 parent a3506db commit 7855e24
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,40 +82,40 @@ jobs:
# with:
# token: ${{ secrets.CODECOV_TOKEN }}

release:
# needs: [ doc,test ]
strategy:
matrix:
platform: [ "windows-x86", "windows-x86_64", "macosx-arm64", "macosx-x86_64", "linux-arm64", "linux-x86", "linux-x86_64" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Get Previous tag'
id: previoustag
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:
java-version: 1.8
server-id: sonatype-nexus-staging
server-username: ${{ secrets.OSSRH_USER }}
server-password: ${{ secrets.OSSRH_PASSWORD }}
gpg-passphrase: ${{ secrets.GPG_PASSWORD }}
- name: Publish to Maven Central Repo
uses: samuelmeuli/action-maven-publish@v1
with:
maven_args: -Dmaven.test.skip=true
gpg_private_key: ${{ secrets.GPG_SECRET }}
gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
nexus_username: ${{ secrets.OSSRH_USER }}
nexus_password: ${{ secrets.OSSRH_PASSWORD }}
- uses: softprops/action-gh-release@v1
with:
draft: false
generate_release_notes: true
# release:
# # needs: [ doc,test ]
# strategy:
# matrix:
# platform: [ "windows-x86", "windows-x86_64", "macosx-arm64", "macosx-x86_64", "linux-arm64", "linux-x86", "linux-x86_64" ]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: 'Get Previous tag'
# id: previoustag
# 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:
# java-version: 1.8
# server-id: sonatype-nexus-staging
# server-username: ${{ secrets.OSSRH_USER }}
# server-password: ${{ secrets.OSSRH_PASSWORD }}
# gpg-passphrase: ${{ secrets.GPG_PASSWORD }}
# - name: Publish to Maven Central Repo
# uses: samuelmeuli/action-maven-publish@v1
# with:
# maven_args: -Dmaven.test.skip=true
# gpg_private_key: ${{ secrets.GPG_SECRET }}
# gpg_passphrase: ${{ secrets.GPG_PASSWORD }}
# nexus_username: ${{ secrets.OSSRH_USER }}
# nexus_password: ${{ secrets.OSSRH_PASSWORD }}
# - uses: softprops/action-gh-release@v1
# with:
# draft: false
# generate_release_notes: true
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.soniccloudorg</groupId>
<artifactId>sonic-vision-core</artifactId>
<version>SONIC_VERSION-${platform}</version>
<version>1.0.15-linux-x86</version>

<name>sonic-vision-core</name>
<description>The Sonic Project Vision Core By OpenCV.</description>
Expand Down Expand Up @@ -143,25 +143,25 @@
<groupId>org.bytedeco</groupId>
<artifactId>ffmpeg</artifactId>
<version>5.1.2-1.5.8</version>
<classifier>${platform}</classifier>
<classifier>linux-x86</classifier>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<version>1.5.8</version>
<classifier>${platform}</classifier>
<classifier>linux-x86</classifier>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>opencv</artifactId>
<version>4.6.0-1.5.8</version>
<classifier>${platform}</classifier>
<classifier>linux-x86</classifier>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>openblas</artifactId>
<version>0.3.21-1.5.8</version>
<classifier>${platform}</classifier>
<classifier>linux-x86</classifier>
</dependency>
</dependencies>

Expand Down

0 comments on commit 7855e24

Please sign in to comment.