File tree 1 file changed +60
-0
lines changed 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : Deploy Pages
4
+
5
+ # Controls when the workflow will run
6
+ on :
7
+ push :
8
+ branches : [ "main" ]
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch :
12
+
13
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
+ permissions :
15
+ contents : read
16
+ pages : write
17
+ id-token : write
18
+
19
+ # Allow one concurrent deployment
20
+ concurrency :
21
+ group : " pages"
22
+ cancel-in-progress : true
23
+
24
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
25
+ jobs :
26
+ # This workflow contains a single job called "build"
27
+ build :
28
+ # The type of runner that the job will run on
29
+ runs-on : ubuntu-latest
30
+
31
+ # Steps represent a sequence of tasks that will be executed as part of the job
32
+ steps :
33
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
34
+ - name : Checkout
35
+ uses : actions/checkout@v3
36
+
37
+ - name : Install mdBook
38
+ run : cargo install mdbook --no-default-features --features search
39
+
40
+ - name : Build Docs
41
+ run : $HOME/.cargo/bin/mdbook build
42
+
43
+ - name : Upload artifact
44
+ uses : actions/upload-pages-artifact@v1
45
+ with :
46
+ path : ./book
47
+
48
+ deploy :
49
+ runs-on : ubuntu-latest
50
+
51
+ environment :
52
+ name : github-pages
53
+ url : ${{ steps.deployment.outputs.page_url }}
54
+
55
+ needs : build
56
+
57
+ steps :
58
+ - name : Deploy to GitHub Pages
59
+ id : deployment
60
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments