diff --git a/.github/workflows/build_orca.yml b/.github/workflows/build_orca.yml index 2c1e856bf..c51ca95cd 100644 --- a/.github/workflows/build_orca.yml +++ b/.github/workflows/build_orca.yml @@ -21,6 +21,7 @@ jobs: env: date: ver: + ver_pure: steps: - name: Checkout @@ -36,13 +37,14 @@ jobs: - name: Get the version and date on Ubuntu and macOS if: inputs.os != 'windows-latest' run: | + ver_pure=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2) if [[ "${{ github.event_name }}" == "pull_request" ]]; then - ver="PR${{ github.event.number }}" + ver="PR-${{ github.event.number }}" else - ver=$(grep 'set(SoftFever_VERSION' version.inc | cut -d '"' -f2) - ver=V$ver + ver=V$ver_pure fi echo "ver=$ver" >> $GITHUB_ENV + echo "ver_pure=$ver_pure" >> $GITHUB_ENV echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV shell: bash @@ -240,6 +242,7 @@ jobs: shell: bash run: | ./BuildLinux.sh -isr + mv ./build/OrcaSlicer_Linux_V${{ env.ver_pure }}.AppImage ./build/OrcaSlicer_Linux_${{ env.ver }}.AppImage chmod +x ./build/OrcaSlicer_Linux_${{ env.ver }}.AppImage - name: Upload artifacts Ubuntu