Update k8s-best-practices-hugepages.adoc #235
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: Build and deploy website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Extract assets | |
run: docker cp $(docker run --detach quay.io/redhat-docs/redhat-docs-template):/assets ./assets | |
- name: Build AsciiDoc | |
uses: docker://quay.io/redhat-docs/redhat-docs-template | |
with: | |
args: main.adoc | |
- name: Copy output to docs/ | |
run: | | |
mkdir docs | |
cp -r images/ docs/images || true | |
cp -r assets/ docs/assets || true | |
mv index.html docs/ | |
- name: Publish to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |