diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 30b1d56c9..cfc0d2732 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -241,9 +241,6 @@ jobs: fi steps: - - name: Checkout `flow` repository - uses: actions/checkout@v4 - - name: Update available software list for apt-get run: sudo apt-get update @@ -272,6 +269,9 @@ jobs: - name: Install the latest version of Conan which is less than 2 run: pip install 'conan<2' + - name: Checkout `flow` repository + uses: actions/checkout@v4 + - name: Add custom settings for Conan packages if: | matrix.build-test-cfg.conan-custom-settings-defs @@ -437,15 +437,26 @@ jobs: - name: Update available software list for apt-get run: sudo apt-get update - - name: Checkout `flow` repository - uses: actions/checkout@v4 - - name: Install Flow dependencies (like Graphviz) with apt-get run: sudo apt-get install -y graphviz - name: Install the latest version of Conan which is less than 2 run: pip install 'conan<2' + - name: Checkout `flow` repository + uses: actions/checkout@v4 + + # See comments in Flow-IPC workflow counterpart. We use same techniques. + - name: (On release creation only) Signal Pages about release (web site should update) + if: success() && (!cancelled()) && startsWith(github.ref, 'refs/tags/v') + run: | + # Signal Pages about release (web site should update). + curl --fail-with-body -X POST \ + -H 'Accept: application/vnd.github.v3+json' \ + -H 'Authorization: token ${{ secrets.GIT_BOT_PAT }}' \ + 'https://api.github.com/repos/Flow-IPC/flow-ipc.github.io/dispatches' \ + -d '{"event_type": "flow-sync-doc-event", "client_payload": {"version": "${{ github.ref_name }}"}}' + - name: Create Conan profile run: | # Create Conan profile. @@ -518,14 +529,3 @@ jobs: -H 'Authorization: token ${{ secrets.GIT_BOT_PAT }}' \ 'https://api.github.com/repos/Flow-IPC/flow-ipc.github.io/dispatches' \ -d '{"event_type": "flow-sync-doc-event"}' - - # See comments in Flow-IPC workflow counterpart. We use same techniques. - - name: (On release creation only) Signal Pages about release (web site should update) - if: success() && (!cancelled()) && startsWith(github.ref, 'refs/tags/v') - run: | - # Signal Pages about release (web site should update). - curl --fail-with-body -X POST \ - -H 'Accept: application/vnd.github.v3+json' \ - -H 'Authorization: token ${{ secrets.GIT_BOT_PAT }}' \ - 'https://api.github.com/repos/Flow-IPC/flow-ipc.github.io/dispatches' \ - -d '{"event_type": "flow-sync-doc-event", "client_payload": {"version": "${{ github.ref_name }}"}}'