Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/r-custom-release-candidate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on:
workflow_dispatch:

name: Create a Special Branch for Unmerged Release Candidates

jobs:
testing:
name: r-custom-release-candidate
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write

steps:
- uses: actions/checkout@v4
with:
ref: 'pr-temp-rc'
submodules: 'recursive'

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::testthat, any::decor

- name: Create CRAN-formatted source package in stochtree_cran subfolder
run: |
Rscript cran-bootstrap.R

- name: Copy a release candidate-specific README.md to stochtree_cran
run: |
cp RC_README.md stochtree_cran/README.md

- name: Copy demo scripts
run: |
mkdir -p stochtree_cran/tools
cp tools/debug/cloglog_ordinal_bart_binary.R stochtree_cran/tools/cloglog_ordinal_bart_binary.R
cp tools/debug/cloglog_ordinal_bart_three_category.R stochtree_cran/tools/cloglog_ordinal_bart_three_category.R
cp tools/debug/cloglog_ordinal_bart_four_category.R stochtree_cran/tools/cloglog_ordinal_bart_four_category.R

- name: Deploy to CRAN dev branch
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: cloglog-bart-rc
folder: stochtree_cran
Loading