Add a generic log retrieval client to Armada Python Client (#3892) #134
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy GH Pages | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'docs/*.md' | |
- 'docs/developer' | |
- 'docs/logo/**/*' | |
- '*.md' | |
- '.github/workflows/pages.yml' | |
jobs: | |
deploy-gh-pages: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v4 | |
with: | |
path: master | |
- name: Checkout gh-pages branch | |
uses: actions/checkout@v4 | |
with: | |
ref: 'gh-pages' | |
path: gh-pages | |
- name: Copy site files | |
run: | | |
cp master/docs/*.md gh-pages/ | |
rm gh-pages/docs-readme.md | |
cp -r master/docs/developer gh-pages/ | |
cp master/CODE_OF_CONDUCT.md master/CONTRIBUTING.md gh-pages/_pages/ | |
- name: Commit GH Pages | |
run: | | |
cd gh-pages | |
git config user.name armada-admin | |
git config user.email [email protected] | |
git add . _pages | |
git diff --quiet && git diff --staged --quiet || git commit -m "Updating Github Pages branch with latest Master changes" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |