Skip to content

chore: trigger

chore: trigger #31

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
name: pkgdown
on:
push:
branches: [main, master, GDR-2371]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_call:
inputs:
USERNAME:
required: true
type: string
PACKAGE_NAME:
required: true
type: string
BRANCH_NAME:
required: true
type: string
COMMIT_HASH:
required: true
type: string
COMMIT_MSG:
required: true
type: string
secrets:
PRIVATE_ACCESS_TOKEN:
required: true
GDRGENESIS_TRIGGER_TOKEN:
required: true
GDRVIZ_TRIGGER_TOKEN:
required: true
jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
TEST_TAG: user/app:latest-${{ github.sha }}
USERNAME: ${{ github.actor }}
PACKAGE_NAME: ${{ github.event.repository.name }}
BRANCH_NAME: ${{ github.head_ref }}
BASE_IMAGE: bioconductor/bioconductor_docker:devel
permissions:
contents: write
steps:
#- uses: actions/checkout@v4
#- uses: r-lib/actions/setup-pandoc@v2
#- uses: r-lib/actions/setup-r@v2
# with:
# use-public-rspm: true
- name: Checkout
uses: actions/checkout@v2
#- name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
- name: Build
uses: docker/build-push-action@v2
with:
context: .
#load: true
fetch-depth: 0
ref: GDR-2371
tags: ${{ env.TEST_TAG }}
build-args: |
GITHUB_TOKEN=${{ env.GITHUB_PAT }}
BASE_IMAGE=${{ env.BASE_IMAGE }}
#BUILDKIT_CONTEXT_KEEP_GIT_DIR=true
- name: Run tests
run: |
docker run -v $GITHUB_WORKSPACE:/mnt/vol ${{ env.TEST_TAG }} bash -c "find /mnt/vol/"
docker run -v $GITHUB_WORKSPACE:/mnt/vol ${{ env.TEST_TAG }} Rscript -e 'pkgdown::deploy_to_branch("/mnt/vol/", new_process = FALSE)'
#docker run -v `pwd`:/mnt/vol ${{ env.TEST_TAG }} Rscript -e 'pkgdown::deploy_to_branch("/tmp/gDRutils/", new_process = FALSE)'
#docker run -v `pwd`:/mnt/vol ${{ env.TEST_TAG }} Rscript -e 'pkgdown::build_site_github_pages("/tmp/gDRutils", new_process = FALSE, install = FALSE)'
#- uses: r-lib/actions/setup-r-dependencies@v2
# with:
# extra-packages: any::pkgdown, local::.
# needs: website
#- name: Build site
# run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
# shell: Rscript {0}
#- name: Deploy to GitHub pages 🚀
# if: github.event_name != 'pull_request'
# uses: JamesIves/[email protected]
# with:
# clean: false
# branch: gh-pages
# folder: docs