File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,11 +22,48 @@ jobs:
2222 release :
2323 name : Create Github release
2424 runs-on : ubuntu-latest
25- environment : release
2625 steps :
2726 - name : Checkout
2827 uses : actions/checkout@v3
28+ - uses : actions/setup-python@v4
29+ with :
30+ python-version : 3.11
31+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
32+ - uses : actions/cache@v3
33+ with :
34+ key : mkdocs-material-${{ env.cache_id }}
35+ path : .cache
36+ restore-keys : |
37+ mkdocs-material-
38+ - run : pip install mkdocs-material pymdown-extensions mkdocstrings[python] mdx_include
39+ - name : Build docs
40+ run : mkdocs build -d ./site
41+ - name : zip docs
42+ run : zip -r docs.zip ./site
43+ - name : tar docs
44+ run : tar czf docs.tar.gz -C ./site .
2945 - name : Release
3046 uses : softprops/action-gh-release@v1
3147 with :
3248 generate_release_notes : true
49+ files : |
50+ docs.zip
51+ docs.tar.gz
52+
53+ deploy-docs :
54+ name : Deploy docs to github pages
55+ runs-on : ubuntu-latest
56+ steps :
57+ - uses : actions/checkout@v3
58+ - uses : actions/setup-python@v4
59+ with :
60+ python-version : 3.x
61+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
62+ - uses : actions/cache@v3
63+ with :
64+ key : mkdocs-material-${{ env.cache_id }}
65+ path : .cache
66+ restore-keys : |
67+ mkdocs-material-
68+ - run : pip install mkdocs-material pymdown-extensions mkdocstrings[python] mdx_include
69+ - run : mkdocs gh-deploy --force
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ to provide your own problems.
1111
1212::: algobattle.problem.Solution
1313
14- ::: algobattle.problem.ProblemModel
14+ ::: algobattle.problem.InstanceModel
1515
1616::: algobattle.problem.SolutionModel
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "pdm.backend"
44
55[project ]
66name = " algobattle-base"
7- version = " 4.0.0-rc1 "
7+ version = " 4.0.0rc2 "
88description = " The Algobattle lab course package."
99readme = " README.md"
1010requires-python = " >=3.11"
You can’t perform that action at this time.
0 commit comments