diff --git a/.github/workflows/conan-recipe-export.yml b/.github/workflows/conan-recipe-export.yml index 9e6ce9a55d..1ede5ba60f 100644 --- a/.github/workflows/conan-recipe-export.yml +++ b/.github/workflows/conan-recipe-export.yml @@ -86,14 +86,18 @@ jobs: if: ${{ inputs.conan_export_binaries != 'true' }} run: conan export . ${{ inputs.recipe_id_full }} - - name: Create the latest alias + - name: Remove the latest alias if: ${{ inputs.recipe_id_latest != '' }} run: | conan remove ${{ inputs.recipe_id_latest }} -r cura -f conan remove ${{ inputs.recipe_id_latest }} -r cura-ce -f - conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }} + + - name: Create the latest alias + if: ${{ inputs.recipe_id_latest != '' && always() }} + run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }} - name: Upload the Package(s) + if: always() run: | # Only use --all (upload binaries) for the cura repository conan upload "*" -r cura --all -c