From 2e267ce29c3d77d47389dcea5a87e5f0bf18509a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Mon, 2 Dec 2024 14:18:40 +0100 Subject: [PATCH] Fix deploy Need to wait for all tests first, so we need to deploy from a separate job. --- .github/workflows/build.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e4718b0..2920449 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -122,8 +122,21 @@ jobs: run: | R_VERSION=4.4.2 CONTAINER=${{ matrix.config.container }} docker compose build test + deploy: + name: deploy + if: ${{ github.event.inputs.deploy == '' || github.event.inputs.deploy == 'yes' }} + runs-on: ubuntu-latest + needs: [ test ] + + steps: + + - name: Download all artifacts + uses: actions/download-artifact@v4 + with: + path: output + merge-multiple: true + - name: Release - if: ${{ github.event.inputs.deploy == '' || github.event.inputs.deploy == 'yes' }} uses: softprops/action-gh-release@v2 with: repository: r-hub/R