-
Notifications
You must be signed in to change notification settings - Fork 0
Update generate_documentation.yml #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,53 +1,67 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| # This workflow will generate the documentation for zander-docs dynamically | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: Generate documentation | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: Generate Documentation | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| branches: [master] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| branches: [master] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Allows you to run this workflow manually from the Actions tab | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| build: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| strategy: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| matrix: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| node-version: [18] # Easily add more versions if needed | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Checkout Repository | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/checkout@v3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| submodules: recursive | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Set up Python 3.10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/setup-python@v2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/setup-python@v4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| python-version: "3.10" | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Install dependencies | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Install Python dependencies | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| python -m pip install --upgrade pip | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| python -m pip install -r requirements.txt | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| if [ -f requirements.txt ]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| python -m pip install -r requirements.txt | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo "No requirements.txt found, skipping Python dependency install." | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+25
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move Version 4 of - - name: Set up Python 3.10
- uses: actions/setup-python@v4
+ - name: Set up Python 3.10
+ uses: actions/setup-python@v5📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.7)25-25: the runner of "actions/setup-python@v4" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Use Node.js ${{ matrix.node-version }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/setup-node@v2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Set up Node.js | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/setup-node@v3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| node-version: ${{ matrix.node-version }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| cache: "npm" | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| cache: npm | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+39
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update
- - name: Set up Node.js
- uses: actions/setup-node@v3
+ - name: Set up Node.js
+ uses: actions/setup-node@v4🧰 Tools🪛 actionlint (1.7.7)39-39: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Generate API documentation | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| cd vendor | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| python APIGenerator/src/gen.py --build | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| if [ -d vendor ]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| cd vendor | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| python APIGenerator/src/gen.py --build | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo "⚠️ Vendor folder not found. Skipping API generation." | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: npm install and build | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Install and Build with npm | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| npm ci | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| if [ -f package-lock.json ]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| npm ci | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| npm install | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| npm run build --if-present | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Deploy 🚀 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| if: success() # only deploy if build succeeds | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: JamesIves/github-pages-deploy-action@v4.2.3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| branch: gh-pages # The branch the action should deploy to. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| folder: build # The folder the action should deploy. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| branch: gh-pages | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| folder: build | ||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrade
actions/checkoutto v4 now.actions/checkout@v3still targets the deprecated Node 16 runtime, which GitHub stopped running in March 2025. This workflow will fail once executed on current runners. Bump to v4 (Node 20) to restore compatibility.📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.7)
19-19: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents