Publish release 1.4.3. (#633) #19
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: generate github pages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/website.yaml" | |
- "docs/**" | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
permissions: | |
actions: read | |
contents: write | |
deployments: read | |
packages: none | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Set TOOLS_BIN_DIR and add to PATH | |
run: | | |
TOOLS_BIN_DIR="${HOME}/.cargo/bin" | |
echo "TOOLS_BIN_DIR=${TOOLS_BIN_DIR}" >> ${GITHUB_ENV} | |
echo "${TOOLS_BIN_DIR}" >> ${GITHUB_PATH} | |
- name: Build | |
run: make -C docs/book build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/book/book |