Commit ad1ce41 1 parent 78302ed commit ad1ce41 Copy full SHA for ad1ce41
File tree 1 file changed +41
-0
lines changed
1 file changed +41
-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 : Update gh-pages
4
+
5
+ # Controls when the action will run.
6
+ on :
7
+ # Triggers the workflow on push or pull request events but only for the master branch
8
+ pull_request :
9
+ branches : [ master ]
10
+
11
+ # Allows you to run this workflow manually from the Actions tab
12
+ workflow_dispatch :
13
+
14
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15
+ jobs :
16
+ # This workflow contains a single job called "build"
17
+ build :
18
+ # The type of runner that the job will run on
19
+ runs-on : ubuntu-latest
20
+
21
+ # Steps represent a sequence of tasks that will be executed as part of the job
22
+ steps :
23
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24
+ - uses : actions/checkout@v2
25
+ - name : Set up Python ${{ matrix.python-version }}
26
+ uses : actions/setup-python@v2
27
+ with :
28
+ python-version : ${{ matrix.python-version }}
29
+ - name : Install dependencies
30
+ run : |
31
+ python -m pip install --upgrade pip
32
+ pip install mkdocs
33
+ # Runs a set of commands using the runners shell
34
+ - name : Update gh-pages
35
+ run : |
36
+ git fetch origin gh-pages:gh-pages
37
+ mkdir docs
38
+ python gen-md.py
39
+ cp README.md .\docs\index.md
40
+ mkdocs gh-deploy
41
+ rm -rf site docs
You can’t perform that action at this time.
0 commit comments