Skip to content

Commit

Permalink
Adding step to save the built package
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Sep 27, 2024
1 parent 5d606cc commit eae8a72
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'devel', http-user-agent: 'release'}
- {os: windows-latest, r: 'devel', http-user-agent: 'release'}
# Use older ubuntu to maximise backward compatibility
# se older ubuntu to maximise backward compatibility
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel'}
Expand Down Expand Up @@ -72,13 +72,17 @@ jobs:
check-dir: '"check"'
error-on: '"warning"'

# Upload the built package as an artifact
- name: Build the package
if: ${{ matrix.config.os == 'ubuntu-latest' && (matrix.config.r == 'release' | matrix.config.r == 'devel') }}
run: R CMD build .

- uses: actions/upload-artifact@v4
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release' }}
if: ${{ matrix.config.os == 'ubuntu-latest' && (matrix.config.r == 'release' | matrix.config.r == 'devel') }}
with:
name: ${{ matrix.config.os }}-pkg
path: ${{ github.workspace }}/*.tar.gz

name: epiworldR-built-package-${{ runner.os }}
path: epiworldR_*.tar.gz
retention-days: 7

epiworldShiny:
runs-on: ubuntu-latest
container: rocker/tidyverse:4.4.0
Expand Down

0 comments on commit eae8a72

Please sign in to comment.