Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
944 B
YAML
37 lines
944 B
YAML
name: Deploy Wiki
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'kubernetes/docs/**'
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy-wiki:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
- name: Install rsync
|
|
run: |
|
|
sudo apt install rsync grsync
|
|
- name: Clone Wiki
|
|
run: |
|
|
git config --global --add safe.directory "/github/workspace"
|
|
git config --global --add safe.directory "/github/workspace/wiki"
|
|
git clone https://github.com/kubernetes-client/python.wiki.git wiki
|
|
message=$(git log -1 --format=%B)
|
|
- name: Copy to wiki repository
|
|
run: |
|
|
rsync -av --delete kubernetes/docs/ wiki/ --exclude .git
|
|
- name: Push wiki
|
|
run: |
|
|
cd wiki
|
|
git config user.name github-actions
|
|
git config user.email github-actions@github.com
|
|
git add .
|
|
git commit -m "$message"
|
|
git push
|
|
|