Skip to content

Commit 0c8ad18

Browse files
authored
Merge pull request #118 from ImogenBits/better_ci
Improve publish CI
2 parents b481d9e + c36bf00 commit 0c8ad18

4 files changed

Lines changed: 40 additions & 30 deletions

File tree

.github/workflows/docs.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff 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

docs/api/problem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "pdm.backend"
44

55
[project]
66
name = "algobattle-base"
7-
version = "4.0.0-rc1"
7+
version = "4.0.0rc2"
88
description = "The Algobattle lab course package."
99
readme = "README.md"
1010
requires-python = ">=3.11"

0 commit comments

Comments
 (0)