From 8e57f47e40f7b0e00c80289293e37c5610e8d2b7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 27 Oct 2024 11:25:37 -0700 Subject: mdbook action (trial) for publish --- .github/workflows/mdbook.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/mdbook.yml (limited to '.github') diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml new file mode 100644 index 00000000..61253123 --- /dev/null +++ b/.github/workflows/mdbook.yml @@ -0,0 +1,31 @@ +name: mdbook publish + +on: + push: + branches: + - main: + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v4 + + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v2 + with: + # mdbook-version: '0.4.10' + mdbook-version: 'latest' + + - run: mdbook build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + if: ${{ github.ref == 'refs/heads/main' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./book + destination_dir: ./ref -- cgit v1.2.3-70-g09d2