更新 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 }} 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