Skip to content

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

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

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

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
shell: bash
run: |
cp -r docs docs-tmp
git fetch origin gh-pages
git checkout gh-pages
mv -f docs-tmp/* .
git add -u
git commit -m "[docs] @${{ github.triggering_actor }}: Update Documentation" \
-m "Source: ${{ github.ref_name }} (${{ github.sha }})"
git push