Skip to content

Update tabling hours #85

Update tabling hours

Update tabling hours #85

Workflow file for this run

on: [push]
name: build
jobs:
covr:
if: "! contains(github.event.head_commit.message, '[ci skip]')"
timeout-minutes: 10
runs-on: ubuntu-latest
name: build
strategy:
fail-fast: false
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install bhgc.website
run: |
install.packages(".", repos = NULL)
shell: Rscript {0}
- name: Shell session info
run: |
ls -al
git status
git branch -a
git log -1
- name: R session info
run: |
options(width = 100)
capabilities()
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
- name: Build
run: |
bhgc.website::build()
shell: Rscript {0}
- name: Publish (master branch only)
if: github.ref_name == 'master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "BHGC Website GHA Workflow Runner"
git fetch origin gh-pages
git checkout gh-pages
git merge origin/gh-pages --allow-unrelated-histories -m "Merge remote-tracking branch 'origin/gh-pages'"
rsync -av html/ .
rm -rf html/
git add -f .
git commit -am "bhgc.website::build()" && git push origin gh-pages
true
- name: Upload build results
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }}-build-results
path: check