Test.
Some checks failed
github pages / deploy (push) Has been cancelled

This commit is contained in:
Jacob Signorovitch 2024-10-08 12:43:10 -04:00
parent a7dcfd34c7
commit a759cb8b16

View File

@ -1,29 +1,30 @@
name: Build mdBook name: github pages
on: on:
push: push:
branches: branches:
- main - main
pull_request:
jobs: jobs:
build: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps: steps:
- name: Checkout code - uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install mdBook - name: Setup mdBook
run: | uses: peaceiris/actions-mdbook@v2
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdbook-v0.4.40-x86_64-unknown-linux-gnu.tar.gz | tar -xvz -C /usr/local/bin with:
mdbook-version: '0.4.10'
# mdbook-version: 'latest'
- name: Build mdBook - run: mdbook build
run: mdbook build
- name: Deploy - name: Deploy
run: | uses: peaceiris/actions-gh-pages@v3
rsync -avz --delete ./book/ books@signorovitch.org:apush-guide if: ${{ github.ref == 'refs/heads/main' }}
env: with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book