Skip to content

Commit

Permalink
Fix Conan config and add credentials handling
Browse files Browse the repository at this point in the history
Streamline Conan configuration setup by merging commands and introduce runner-specific profile handling. Add steps for setting runner credentials and ensuring consistent package upload procedure.

NP-577
  • Loading branch information
jellespijker committed Nov 19, 2024
1 parent 1c989ce commit 71eadac
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/npm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ jobs:
- name: Create default Conan profile
run: conan profile new default --detect

# FIXME: Once merged to main: conan config install https://github.com/Ultimaker/conan-config.git -a "-b runner/${{ runner.os }}/${{ runner.arch }}"
- name: Get Conan configuration
run: |
conan config install https://github.com/Ultimaker/conan-config.git
conan config install https://github.com/Ultimaker/conan-config.git -a "-b runner/${{ runner.os }}/${{ runner.arch }}"
conan config install https://github.com/Ultimaker/conan-config.git -a "-b NP-419"
- name: Add runner credentials to cura remote
run: conan user -p ${{ secrets.CONAN_PASS }} -r cura ${{ secrets.CONAN_USER }}

- name: Cache Conan packages
uses: actions/cache@v3
Expand Down Expand Up @@ -82,3 +86,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: DulcificumJS

- name: Upload the Package(s)
if: ${{ always() }}
run: |
conan remove "cura_private_data/*" --force
conan remove "fdm_materials/*" --force
conan upload "*" -r cura --all -c

0 comments on commit 71eadac

Please sign in to comment.