Browse code

Updated branch names, GA workflows.

Robert Ivánek authored on 15/03/2023 10:30:36
Showing 2 changed files

... ...
@@ -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_github("r-lib/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: .
... ...
@@ -21,9 +21,9 @@ Artistic-2.0](https://img.shields.io/badge/License-Artistic%202.0-0298c3.svg)](h
21 21
 | OS                  | [![Platforms](https://bioconductor.org/shields/availability/release/Gviz.svg)](https://bioconductor.org/checkResults/release/bioc-LATEST/Gviz/) | [![Platforms](https://bioconductor.org/shields/availability/devel/Gviz.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/Gviz/) |
22 22
 | Bioc Last Update    | [![Bioconductor-release Last Commit](https://bioconductor.org/shields/lastcommit/release/bioc/Gviz.svg)](https://bioconductor.org/checkResults/release/bioc-LATEST/Gviz/) | [![Bioconductor-devel Last Commit](https://bioconductor.org/shields/lastcommit/devel/bioc/Gviz.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/Gviz/) |
23 23
 | Bioc Status         | [![Bioconductor-release Build Status](https://bioconductor.org/shields/build/release/bioc/Gviz.svg)](https://bioconductor.org/checkResults/release/bioc-LATEST/Gviz) | [![Bioconductor-devel Build Status](https://bioconductor.org/shields/build/devel/bioc/Gviz.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/Gviz) |
24
-| GitHub Last Commit  | [![GitHub last commit (Bioconductor-release)](https://img.shields.io/github/last-commit/ivanek/Gviz/RELEASE_3_16)](https://github.com/ivanek/Gviz/tree/RELEASE_3_16) | [![GitHub last commit (Bioconductor-devel)](https://img.shields.io/github/last-commit/ivanek/Gviz/master)](https://github.com/ivanek/Gviz/tree/master/) |
25
-| GitHub Actions      | [![R build status](https://github.com/ivanek/Gviz/workflows/R-CMD-check-bioc/badge.svg?branch=RELEASE_3_16)](https://github.com/ivanek/Gviz/actions) | [![R build status](https://github.com/ivanek/Gviz/workflows/R-CMD-check-bioc/badge.svg?branch=master)](https://github.com/ivanek/Gviz/actions) |
26
-| Coverage            | [![Codecov.io (Bioconductor-release)](https://codecov.io/github/ivanek/Gviz/coverage.svg?branch=RELEASE_3_16)](https://codecov.io/gh/ivanek/Gviz/branch/RELEASE_3_16) | [![Codecov.io (Bioconductor-devel)](https://codecov.io/github/ivanek/Gviz/coverage.svg?branch=master)](https://codecov.io/github/ivanek/Gviz) |
24
+| GitHub Last Commit  | [![GitHub last commit (Bioconductor-release)](https://img.shields.io/github/last-commit/ivanek/Gviz/RELEASE_3_16)](https://github.com/ivanek/Gviz/tree/RELEASE_3_16) | [![GitHub last commit (Bioconductor-devel)](https://img.shields.io/github/last-commit/ivanek/Gviz/devel)](https://github.com/ivanek/Gviz/tree/devel/) |
25
+| GitHub Actions      | [![R build status](https://github.com/ivanek/Gviz/workflows/R-CMD-check-bioc/badge.svg?branch=RELEASE_3_16)](https://github.com/ivanek/Gviz/actions) | [![R build status](https://github.com/ivanek/Gviz/workflows/R-CMD-check-bioc/badge.svg?branch=devel)](https://github.com/ivanek/Gviz/actions) |
26
+| Coverage            | [![Codecov.io (Bioconductor-release)](https://codecov.io/github/ivanek/Gviz/coverage.svg?branch=RELEASE_3_16)](https://codecov.io/gh/ivanek/Gviz/branch/RELEASE_3_16) | [![Codecov.io (Bioconductor-devel)](https://codecov.io/github/ivanek/Gviz/coverage.svg?branch=devel)](https://codecov.io/github/ivanek/Gviz) |
27 27
 
28 28
 ## Authors
29 29