Skip to content

Commit

Permalink
try to use github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-yip committed Jan 23, 2024
1 parent 0605902 commit 3a57bc9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: github pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build with mdBook Docker image
run: docker run --rm -v .:/book eliyip/mdbook-katex:latest

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: "book"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 3a57bc9

Please sign in to comment.