Skip to content

Commit

Permalink
Add a GitHub Action to publish (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
PxlBuzzard committed Mar 23, 2024
1 parent d45e6ab commit 69c2116
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: GitHub Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "latest"

- run: mdbook build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_book
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

0 comments on commit 69c2116

Please sign in to comment.