Skip to content

Commit

Permalink
add auto publish on push to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeMasen committed Jun 6, 2023
1 parent eacc0de commit db9a68f
Show file tree
Hide file tree
Showing 47 changed files with 27 additions and 30,701 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: GitHub Pages

on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- name: setup mdbook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.18'

- run: mdbook build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
3 changes: 0 additions & 3 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,4 @@ multilingual = false
src = "src"
title = "Build JavaScript Development Tools with Rust"

[build]
build-dir = "docs"

[preprocessor.presentation-preprocessor]
1 change: 0 additions & 1 deletion docs/.nojekyll

This file was deleted.

457 changes: 0 additions & 457 deletions docs/01.overview/1.html

This file was deleted.

231 changes: 0 additions & 231 deletions docs/01.overview/rust-ecma.svg

This file was deleted.

Loading

0 comments on commit db9a68f

Please sign in to comment.