Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
add book

delete book

udpate github workflow

update workflow

update node js
  • Loading branch information
Milittle committed Apr 27, 2024
1 parent 9aa7623 commit 9fcc88e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy mdBook to GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install mdBook
run: cargo install mdbook --vers "^0.4.15"

- name: Build mdBook
run: mdbook build

- name: List output files
run: ls -R book

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
book
book
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Effective Rust 中文翻译

这是《Effective Rust》的中文翻译,原文地址:[Effective Rust](!https://www.lurklurk.org/effective-rust/cover.html)
这是《Effective Rust》的中文翻译,原文地址:[Effective Rust](https://www.lurklurk.org/effective-rust/cover.html)

0 comments on commit 9fcc88e

Please sign in to comment.