Skip to content

Merge pull request #123 from pegasystems/polished_offline_reports #24

Merge pull request #123 from pegasystems/polished_offline_reports

Merge pull request #123 from pegasystems/polished_offline_reports #24

Workflow file for this run

name: Deploy R docs
on:
push:
branches:
- master
paths:
- r/docs/**
- .github/workflows/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
deploy-docs:
runs-on: ubuntu-latest
name: Deploy R docs
steps:
- uses: actions/checkout@v3
- name: Commit documentation changes
run: |
git clone https://github.com/${{ github.repository }}.git --branch gh-pages --single-branch gh-pages
cp -r r/docs/* gh-pages/R/
cd gh-pages
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update documentation" -a || true
# The above command will fail if no changes were present, so we ignore
# the return code.
- name: Push changes to gh-pages branch
uses: ad-m/github-push-action@master
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}