Skip to content

[actions] Setup workflow to publish docs/ to gh-pages #3

[actions] Setup workflow to publish docs/ to gh-pages

[actions] Setup workflow to publish docs/ to gh-pages #3

Workflow file for this run

name: Publish Docs
on:
push:
branches:
- 4.x-cuda
paths:
- 'docs/**'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update gh-pages Branch
run: |
cp -r docs docs-tmp
git fetch origin gh-pages
git checkout gh-pages
git rm * -f -r --ignore-unmatch
git add docs-tmp/
git mv docs-tmp/* .
git commit -a -m "[docs] @${{ github.triggering_actor }}: Update Documentation" \
-m "Source: ${{ github.ref_name }} (${{ github.sha }})" \
git push