mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-16 07:03:17 +00:00
更新 maven-publish.yml
This commit is contained in:
10
.github/workflows/maven-publish.yml
vendored
10
.github/workflows/maven-publish.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest, ubuntu-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
@@ -54,12 +54,12 @@ jobs:
|
|||||||
- name: Build native image with Maven
|
- name: Build native image with Maven
|
||||||
run: |
|
run: |
|
||||||
./mvnw native:compile -Pnative
|
./mvnw native:compile -Pnative
|
||||||
if ("${{ matrix.os }}" -eq "windows-latest") {
|
if [ "${{ matrix.os }}" = "windows-latest" ]; then
|
||||||
mv ./target/gpt-4-copilot.exe ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}.exe
|
mv ./target/gpt-4-copilot.exe ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}.exe
|
||||||
} else {
|
else
|
||||||
mv ./target/gpt-4-copilot ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}
|
mv ./target/gpt-4-copilot ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}
|
||||||
}
|
fi
|
||||||
shell: pwsh
|
shell: bash
|
||||||
|
|
||||||
- name: Check if release exists
|
- name: Check if release exists
|
||||||
id: check_release
|
id: check_release
|
||||||
|
Reference in New Issue
Block a user