Skip to content

Commit 752c187

Browse files
author
pixelead0
committed
Enhance CI/CD workflow by adding steps for repository checkout, Python setup, dependency installation, MkDocs site build, and GitHub Pages deployment.
1 parent d1279fe commit 752c187

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,26 @@ jobs:
1616
name: Build and Validate
1717
runs-on: ubuntu-latest
1818
steps:
19-
# ... todos los pasos de validación y build ...
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.x'
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install -r requirements.txt
31+
32+
- name: Build MkDocs site
33+
run: mkdocs build --strict
34+
35+
- name: Upload Pages artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: site/
2039

2140
deploy:
2241
name: Deploy to GitHub Pages
@@ -27,4 +46,6 @@ jobs:
2746
name: github-pages
2847
url: ${{ steps.deployment.outputs.page_url }}
2948
steps:
30-
# ... pasos de deploy ...
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)