...
|
...
|
@@ -210,13 +210,13 @@ jobs:
|
210
|
210
|
shell: Rscript {0}
|
211
|
211
|
|
212
|
212
|
- name: Install covr
|
213
|
|
- if: github.ref == 'refs/heads/master' && env.run_covr == 'true' && runner.os == 'Linux'
|
|
213
|
+ if: github.ref == 'refs/heads/devel' && env.run_covr == 'true' && runner.os == 'Linux'
|
214
|
214
|
run: |
|
215
|
215
|
remotes::install_cran("covr")
|
216
|
216
|
shell: Rscript {0}
|
217
|
217
|
|
218
|
218
|
- name: Install pkgdown
|
219
|
|
- if: github.ref == 'refs/heads/master' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
|
219
|
+ if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
220
|
220
|
run: |
|
221
|
221
|
remotes::install_cran("pkgdown")
|
222
|
222
|
shell: Rscript {0}
|
...
|
...
|
@@ -267,17 +267,17 @@ jobs:
|
267
|
267
|
shell: Rscript {0}
|
268
|
268
|
|
269
|
269
|
- name: Test coverage
|
270
|
|
- if: github.ref == 'refs/heads/master' && env.run_covr == 'true' && runner.os == 'Linux'
|
|
270
|
+ if: github.ref == 'refs/heads/devel' && env.run_covr == 'true' && runner.os == 'Linux'
|
271
|
271
|
run: |
|
272
|
272
|
covr::codecov()
|
273
|
273
|
shell: Rscript {0}
|
274
|
274
|
|
275
|
275
|
- name: Install package
|
276
|
|
- if: github.ref == 'refs/heads/master' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
|
276
|
+ if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
277
|
277
|
run: R CMD INSTALL .
|
278
|
278
|
|
279
|
279
|
- name: Build pkgdown site
|
280
|
|
- if: github.ref == 'refs/heads/master' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
|
280
|
+ if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
281
|
281
|
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
|
282
|
282
|
shell: Rscript {0}
|
283
|
283
|
## Note that you need to run pkgdown::deploy_to_branch(new_process = FALSE)
|
...
|
...
|
@@ -286,12 +286,12 @@ jobs:
|
286
|
286
|
## makes the git history recognizable by pkgdown.
|
287
|
287
|
|
288
|
288
|
- name: Install deploy dependencies
|
289
|
|
- if: github.ref == 'refs/heads/master' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
|
289
|
+ if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
290
|
290
|
run: |
|
291
|
291
|
apt-get update && apt-get -y install rsync
|
292
|
292
|
|
293
|
293
|
- name: Deploy pkgdown site to GitHub pages 🚀
|
294
|
|
- if: github.ref == 'refs/heads/master' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
|
294
|
+ if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
|
295
|
295
|
uses: JamesIves/github-pages-deploy-action@releases/v4
|
296
|
296
|
with:
|
297
|
297
|
clean: false
|
...
|
...
|
@@ -313,25 +313,25 @@ jobs:
|
313
|
313
|
needs: build-check
|
314
|
314
|
steps:
|
315
|
315
|
- name: Checkout Repository
|
316
|
|
- if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/master' "
|
|
316
|
+ if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel' "
|
317
|
317
|
uses: actions/checkout@v3
|
318
|
318
|
|
319
|
319
|
- name: Register repo name
|
320
|
|
- if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/master' "
|
|
320
|
+ if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel' "
|
321
|
321
|
id: reg_repo_name
|
322
|
322
|
run: |
|
323
|
323
|
echo CONT_IMG_NAME=$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
|
324
|
324
|
|
325
|
325
|
- name: Set up QEMU
|
326
|
|
- if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/master' "
|
|
326
|
+ if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel' "
|
327
|
327
|
uses: docker/setup-qemu-action@v2
|
328
|
328
|
|
329
|
329
|
- name: Set up Docker Buildx
|
330
|
|
- if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/master' "
|
|
330
|
+ if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel' "
|
331
|
331
|
uses: docker/setup-buildx-action@v2
|
332
|
332
|
|
333
|
333
|
- name: Login to Docker Hub
|
334
|
|
- if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/master' "
|
|
334
|
+ if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel' "
|
335
|
335
|
uses: docker/login-action@v2
|
336
|
336
|
with:
|
337
|
337
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
...
|
...
|
@@ -345,7 +345,7 @@ jobs:
|
345
|
345
|
## https://seandavi.github.io/BuildABiocWorkshop/articles/HOWTO_BUILD_WORKSHOP.html.
|
346
|
346
|
|
347
|
347
|
- name: Build and Push Docker
|
348
|
|
- if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/master' && success()"
|
|
348
|
+ if: "!contains(github.event.head_commit.message, '/nodocker') && env.run_docker == 'true' && github.ref == 'refs/heads/devel' && success()"
|
349
|
349
|
uses: docker/build-push-action@v4
|
350
|
350
|
with:
|
351
|
351
|
context: .
|