Merge pull request #190 from casey-williams-rh/update-build-deploy-sc… #182
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: Submit docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docs_build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
with: | |
ref: gh_pages | |
- uses: actions/setup-node@v4 | |
- name: Install packages and deps | |
run: | | |
npm install @antora/cli @antora/site-generator-default | |
./node_modules/.bin/antora playbook.yml | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add docs/* | |
git commit -m "Updated pages for $GITHUB_SHA" | |
git push |