更新 maven-publish.yml

This commit is contained in:
Yang Yang
2024-02-23 11:03:37 +08:00
committed by GitHub
parent d66f2a939e
commit 1a6fc05d92

View File

@@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
@@ -54,12 +54,12 @@ jobs:
- name: Build native image with Maven
run: |
./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
} else {
else
mv ./target/gpt-4-copilot ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}
}
shell: pwsh
fi
shell: bash
- name: Check if release exists
id: check_release