File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : docs
3+
4+ on :
5+ push :
6+ branches :
7+ - master
8+ paths-ignore :
9+ - " **.md"
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ # Allow one concurrent deployment, cancelling in-progress runs.
18+ concurrency :
19+ group : pages
20+ cancel-in-progress : true
21+
22+ jobs :
23+ build_and_deploy :
24+ runs-on : ubuntu-latest
25+ environment :
26+ name : github-pages
27+ url : ${{ steps.deployment.outputs.page_url }}
28+ steps :
29+ - name : Git checkout
30+ uses : actions/checkout@v6
31+ with :
32+ persist-credentials : false
33+ - name : Setup mise
34+ uses : jdx/mise-action@v4
35+ - name : Install dependencies
36+ run : mise dev:deps
37+ - name : Generate API docs
38+ run : mise dev:docs
39+ - name : Upload Pages artifact
40+ uses : actions/upload-pages-artifact@v3
41+ with :
42+ path : ./docs
43+ - name : Deploy to GitHub Pages
44+ id : deployment
45+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ ---
2+ name : regenerate
3+
4+ permissions : {}
5+
6+ on :
7+ workflow_dispatch :
8+ schedule :
9+ - cron : " 0 6 * * 1" # hebdo — détecte un bump amont à ingérer
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Git checkout
16+ uses : actions/checkout@v6
17+ with :
18+ persist-credentials : false
19+ - name : Setup mise
20+ uses : jdx/mise-action@v4
21+ # The crystal generator lives on an unmerged PR branch, so the jar isn't on
22+ # Maven and isn't committed. Build it from the fork.
23+ # TODO: switch to downloading a released jar once #24070 merges upstream.
24+ - name : Build openapi-generator jar from PR branch
25+ run : |
26+ git clone --depth 1 \
27+ --branch crystal/idiomatic-api-redesign \
28+ https://github.com/n-rodriguez/openapi-generator.git /tmp/openapi-generator
29+ cd /tmp/openapi-generator
30+ ./mvnw -q clean package \
31+ -pl modules/openapi-generator-cli -am \
32+ -DskipTests -Dmaven.javadoc.skip=true
33+ cp modules/openapi-generator-cli/target/openapi-generator-cli.jar \
34+ "$GITHUB_WORKSPACE/openapi-generator-cli.jar"
35+ - name : Regenerate
36+ run : mise run build
37+ - name : Install dependencies
38+ run : mise dev:deps
39+ - name : Run tests
40+ run : mise dev:spec
You can’t perform that action at this time.
0 commit comments