Skip to content

Commit

Permalink
Fix deploy
Browse files Browse the repository at this point in the history
Need to wait for all tests first, so we need to deploy
from a separate job.
  • Loading branch information
gaborcsardi committed Dec 2, 2024
1 parent 11503de commit 2e267ce
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e267ce

Please sign in to comment.