added artExchange #40
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: doc | |
on: | |
pull_request: | |
push: | |
jobs: | |
doc: | |
runs-on: ubuntu-latest | |
container: ghcr.io/carapace-sh/carapace | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "build docs" | |
run: mdbook build docs | |
- name: "add og:image" | |
run: sh .github/og-image.sh docs/book/html/*.html | |
- name: "push gh-pages" | |
if: github.ref == 'refs/heads/master' | |
run: | | |
cd docs/book/html | |
git init | |
git config user.name rsteube | |
git config user.email [email protected] | |
git add . | |
git commit -m "initial commit [ci skip]" | |
git push --force https://rsteube:${GITHUB_TOKEN}@github.com/carapace-sh/carapace-pixi.git master:gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |