Skip to content

Commit 3a088c0

Browse files
committed
add workflow
1 parent 07fc9b6 commit 3a088c0

4 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy mdBook site to Pages
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency:
11+
group: "pages"
12+
cancel-in-progress: false
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Install mdBook
20+
run: |
21+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.28/mdbook-v0.4.28-x86_64-unknown-linux-gnu.tar.gz | tar -xz
22+
- name: Setup Pages
23+
uses: actions/configure-pages@v4
24+
- name: Build with mdBook
25+
run: ./mdbook build --dest-dir ./book
26+
- name: Upload artifact
27+
uses: actions/upload-pages-artifact@v3
28+
with:
29+
path: ./book
30+
deploy:
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
runs-on: ubuntu-latest
35+
needs: build
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

src/SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Summary
22

3-
- [Chapter 1](./chapter_1.md)
3+
[Igor Group](./index.md)
4+
- [Page 1](./page_1.md)

src/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Igor Group
File renamed without changes.

0 commit comments

Comments
 (0)