From 71eadac84a856093e1c1fc305929cc0f0de12c81 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Tue, 19 Nov 2024 13:08:54 +0100 Subject: [PATCH] Fix Conan config and add credentials handling 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 --- .github/workflows/npm-package.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-package.yml b/.github/workflows/npm-package.yml index afc808d..f471626 100644 --- a/.github/workflows/npm-package.yml +++ b/.github/workflows/npm-package.yml @@ -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 @@ -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