mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-15 14:41:00 +00:00
Update maven-publish.yml
This commit is contained in:
9
.github/workflows/maven-publish.yml
vendored
9
.github/workflows/maven-publish.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set tag name
|
- name: Set tag name
|
||||||
id: tag_name
|
id: tag_name
|
||||||
run: echo "::set-output name=tag::${{ github.event_name == 'release' && github.ref#refs/tags/ || github.event.inputs.tag }}"
|
run: echo "::set-output name=tag::${{ github.event_name == 'release' && github.ref.replace('refs/tags/', '') || github.event.inputs.tag }}"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
- name: Build and Rename native image with Maven
|
- name: Build and Rename native image with Maven
|
||||||
run: |
|
run: |
|
||||||
./mvnw native:compile -Pnative
|
./mvnw native:compile -Pnative
|
||||||
mv ./target/gpt-4-copilot* ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}${{ runner.os == 'Windows' && '.exe' || '' }}
|
mv ./target/gpt-4-copilot* ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.os == 'windows-latest' && '.exe' || '' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Package the executable
|
- name: Package the executable
|
||||||
@@ -66,8 +66,8 @@ jobs:
|
|||||||
- name: Create ZIP
|
- name: Create ZIP
|
||||||
run: |
|
run: |
|
||||||
cd packaging
|
cd packaging
|
||||||
${${ runner.os == 'Windows' } && 'Compress-Archive -Path * -DestinationPath ../target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}.zip' || 'zip -r ../target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}.zip .'}
|
${${ matrix.os == 'windows-latest' } && 'Compress-Archive -Path * -DestinationPath ../target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}.zip' || 'zip -r ../target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}.zip .'}
|
||||||
shell: ${{ runner.os == 'Windows' && 'powershell' || 'bash' }}
|
shell: ${{ matrix.os == 'windows-latest' && 'powershell' || 'bash' }}
|
||||||
|
|
||||||
- name: Check if release exists
|
- name: Check if release exists
|
||||||
id: check_release
|
id: check_release
|
||||||
@@ -101,4 +101,3 @@ jobs:
|
|||||||
asset_path: ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}.zip
|
asset_path: ./target/gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}.zip
|
||||||
asset_name: gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}.zip
|
asset_name: gpt-4-copilot-${{ steps.tag_name.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user