|
74 | 74 | conan upload libdispatch/* --confirm -r cloudsmith |
75 | 75 | conan upload gnustep-*/* --confirm -r cloudsmith |
76 | 76 | if: ${{ github.ref == 'refs/heads/main' }} |
| 77 | + - name: Upload Conan packages to GitLab |
| 78 | + run: | |
| 79 | + conan remote add gitlab https://gitlab.com/api/v4/projects/72962159/packages/conan |
| 80 | + conan remote login -p ${{ secrets.GITLAB_API_KEY }} gitlab ${{ secrets.GITLAB_USER }} |
| 81 | + conan upload libobjc2/* --confirm -r gitlab |
| 82 | + conan upload libdispatch/* --confirm -r gitlab |
| 83 | + conan upload gnustep-*/* --confirm -r gitlab |
| 84 | + if: ${{ github.ref == 'refs/heads/main' }} |
77 | 85 | - name: Upload Conan cache to GitHub artifacts |
78 | 86 | uses: actions/upload-artifact@v4 |
79 | 87 | if: always() |
@@ -185,6 +193,13 @@ jobs: |
185 | 193 | . build/conanrun.sh |
186 | 194 | ./build/Tutorial |
187 | 195 | working-directory: tutorial/ |
| 196 | + - name: Upload Conan packages to GitLab |
| 197 | + run: | |
| 198 | + .python3/bin/conan remote add gitlab https://gitlab.com/api/v4/projects/72962159/packages/conan |
| 199 | + .python3/bin/conan remote login -p ${{ secrets.GITLAB_API_KEY }} gitlab ${{ secrets.GITLAB_USER }} |
| 200 | + .python3/bin/conan upload "libobjc2/*" --confirm -r gitlab |
| 201 | + .python3/bin/conan upload "libdispatch/*" --confirm -r gitlab |
| 202 | + .python3/bin/conan upload "gnustep-*/*" --confirm -r gitlab |
188 | 203 | - uses: actions/upload-artifact@v4 |
189 | 204 | if: always() |
190 | 205 | with: |
@@ -235,3 +250,9 @@ jobs: |
235 | 250 | run: .python3/bin/conan create gnustep-base --profile:a=profiles/linux-gcc -c tools.build:skip_test=True |
236 | 251 | - name: Install gnustep-gui |
237 | 252 | run: .python3/bin/conan create gnustep-gui --profile:a=profiles/linux-gcc |
| 253 | + - name: Upload Conan packages to GitLab |
| 254 | + run: | |
| 255 | + .python3/bin/conan remote add gitlab https://gitlab.com/api/v4/projects/72962159/packages/conan |
| 256 | + .python3/bin/conan remote login -p ${{ secrets.GITLAB_API_KEY }} gitlab ${{ secrets.GITLAB_USER }} |
| 257 | + .python3/bin/conan upload "gnustep-*/*" --confirm -r gitlab |
| 258 | + if: ${{ github.ref == 'refs/heads/main' }} |
0 commit comments