-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.24 KB
/
deploy-docs.yml
File metadata and controls
43 lines (38 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy Documentation
on:
push:
branches:
- main # Ou o nome da sua branch principal
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install mdBook
run: |
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.35/mdbook-v0.4.35-x86_64-unknown-linux-gnu.tar.gz | tar -xz
sudo mv mdbook /usr/local/bin/
- name: Build Book
run: mdbook build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book # O mdbook gera o site nesta pasta por padrão
report-status:
if: always()
needs: [deploy]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Report job status
uses: ./.github/actions/ci-issue-manager
with:
workflow_name: "Deploy Documentation"
job_results: ${{ toJSON(needs) }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
server_url: ${{ github.server_url }}
run_id: ${{ github.run_id }}
ref_name: ${{ github.ref_name }}
sha: ${{ github.sha }}