Add extra flags to check integrity and only upload the recipe #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Export | |
| on: | |
| push: | |
| paths: | |
| - '.github/workflows/export.yml' | |
| - 'recipes/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| CONAN_REMOTE_URL: https://conan.ripplex.io | |
| CONAN_REMOTE_NAME: xrplf | |
| jobs: | |
| export: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Conan | |
| uses: conan-io/setup-conan@v1 | |
| - name: Add Conan remote | |
| run: | | |
| conan remote add --index 0 ${{ env.CONAN_REMOTE_NAME }} ${{ env.CONAN_REMOTE_URL }} | |
| echo "Added new conan remote '${{ env.CONAN_REMOTE_NAME }}' at ${{ env.CONAN_REMOTE_URL }}." | |
| - name: Log into Conan remote | |
| run: | | |
| conan remote login ${{ env.CONAN_REMOTE_NAME }} ${{ secrets.CONAN_USERNAME }} --password "${{ secrets.CONAN_PASSWORD }}" | |
| conan remote list-users | |
| - name: Export the recipes | |
| working-directory: recipes | |
| run: | | |
| conan export protobuf/all --version=6.30.1 | |
| conan export snappy/all --version=1.1.10 | |
| conan export soci/all --version=4.0.3 | |
| - name: Upload the recipes | |
| run: | | |
| conan upload '*' --confirm --check --only-recipe \ | |
| --remote ${{ env.CONAN_REMOTE_NAME }} \ | |
| ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch && '' || '--dry-run'}} |