Skip to content

Commit

Permalink
Always remove upload latest
Browse files Browse the repository at this point in the history
  • Loading branch information
jellespijker committed Feb 28, 2023
1 parent 9cf3c2d commit d45f65d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/conan-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,19 @@ jobs:
- name: Get Conan configuration
run: conan config install https://github.com/Ultimaker/conan-config.git

- name: Create the Packages using lockfile
- name: Create the Packages
run: conan create . ${{ needs.conan-recipe-version.outputs.recipe_id_full }} --build=missing --update -o ${{ needs.conan-recipe-version.outputs.project_name }}:devtools=True

- name: Remove the latest alias
if: always() && ${{ needs.conan-recipe-version.outputs.recipe_id_latest != '' }}
if: always()
run: conan remove ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} -r cura -f

- name: Remove the latest alias from cura-ce
if: always() && ${{ needs.conan-recipe-version.outputs.recipe_id_latest != '' }}
if: always()
run: conan remove ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} -r cura-ce -f

- name: Create the latest alias
if: always() && ${{ needs.conan-recipe-version.outputs.recipe_id_latest != '' }}
if: always()
run: conan alias ${{ needs.conan-recipe-version.outputs.recipe_id_latest }} ${{ needs.conan-recipe-version.outputs.recipe_id_full }}

- name: Upload the Package(s)
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/conan-recipe-export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,21 @@ jobs:
run: conan export . ${{ inputs.recipe_id_full }}

- name: Remove the latest alias
if: always() && ${{ inputs.recipe_id_latest != '' && runner.os == 'Linux' }}
if: always()
run: conan remove ${{ inputs.recipe_id_latest }} -r cura -f

- name: Remove the latest alias from cura-ce
if: always() && ${{ inputs.recipe_id_latest != '' && runner.os == 'Linux' }}
if: always()
run: conan remove ${{ inputs.recipe_id_latest }} -r cura-ce -f

- name: Create the latest alias
if: always() && ${{ inputs.recipe_id_latest != '' && runner.os == 'Linux' }}
run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }}

- name: Create the latest alias
if: always() && ${{ inputs.recipe_id_latest != '' }}
if: always()
run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }}

- name: Upload the Package(s)
if: always()
run: conan upload "*" -r cura --all -c

- name: Upload the Package(s) community
if: always() && ${{ inputs.conan_upload_community == true }}
if: ${{ inputs.conan_upload_community && always() }}
run: conan upload "*" -r cura-ce -c

0 comments on commit d45f65d

Please sign in to comment.