1111 - {os: windows-latest, r-version: '4.0'}
1212 - {os: windows-latest, r-version: '4.4'}
1313 - {os: ubuntu-24.04, r-version: '4.4'}
14- runs-on : ${{ matrix.config.os }}
14+ runs-on : ${{ matrix.config.os }}
1515 env :
1616 INSEE_APP_KEY : ${{ secrets.INSEE_APP_KEY }}
1717 INSEE_APP_SECRET : ${{ secrets.INSEE_APP_SECRET }}
@@ -52,22 +52,11 @@ jobs:
5252 run : devtools::build(binary = TRUE, path = "dist")
5353 shell : Rscript {0}
5454 - name : Get package version
55- if : runner.os == 'Linux'
5655 run : |
57- Rscript -e 'devtools::install()'
58- PKGVERSION=$(Rscript -e 'as.character(packageVersion("doremifasol"))')
59- regex='\"(.*)\"'
60- [[ $PKGVERSION =~ $regex ]]
61- export PKGVERSION=${BASH_REMATCH[1]}
62- - name : Upload artifacts - Binaire Windows
63- if : runner.os == 'Windows'
64- uses : actions/upload-artifact@v4
65- with :
66- name : doremifasol_${PKGVERSION}_r${{ matrix.config.r-version }}.zip
67- path : dist/
68- - name : Upload artifacts - source
69- if : runner.os == 'Linux'
70- uses : actions/upload-artifact@v4
56+ echo "PACKAGE_VERSION=$(Rscript -e 'cat(desc::desc_get_version())')" >> $GITHUB_ENV
57+ shell : Rscript {0}
58+ - name : Upload artifacts
59+ uses : actions/upload-artifact@v2
7160 with :
72- name : doremifasol_${PKGVERSION}_r ${{ matrix.config.r-version }}.tar.gz
73- path : dist/
61+ name : ${{ runner.os }}-r ${{ matrix.config.r-version }}-artifacts
62+ path : dist
0 commit comments