Skip to content

Commit

Permalink
Restrict artifacts to release to R version
Browse files Browse the repository at this point in the history
This is needed on self-hosted runners. Also, clean up old artifacts
before downloading the new ones.
  • Loading branch information
gaborcsardi committed Dec 20, 2024
1 parent 7f809ad commit 38a7295
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ jobs:

steps:

- name: Clean up old artifacts
run: |
rm -rf output
mkdir output
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -251,8 +256,8 @@ jobs:
repository: r-hub/R
token: ${{ secrets.DEPLOY_TOKEN }}
files: |
output/*arm64.deb
output/*aarch64.rpm
output/*aarch64.tar.gz
output/*${{ inputs.rversion }}*arm64.deb
output/*${{ inputs.rversion }}*aarch64.rpm
output/*${{ inputs.rversion }}*aarch64.tar.gz
name: "R ${{ inputs.rversion }}"
tag_name: 'v${{ inputs.rversion }}'

0 comments on commit 38a7295

Please sign in to comment.