Skip to content

Commit 138a73b

Browse files
author
Itzi Zubeldia
committed
Use upload pages artifact
1 parent 3d09202 commit 138a73b

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,14 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Configure Git Credentials
16-
run: |
17-
git config user.name github-actions[bot]
18-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
19-
- uses: actions/setup-python@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
2017
with:
2118
python-version: 3.x
22-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
23-
- uses: actions/cache@v3
19+
- run: pip install mkdocs-material
20+
- name: Build site
21+
run: mkdocs build
22+
- name: Upload artifact
23+
uses: actions/upload-pages-artifact@v2
2424
with:
25-
key: mkdocs-material-${{ env.cache_id }}
26-
path: .cache
27-
restore-keys: |
28-
mkdocs-material-
29-
- run: pip install mkdocs-material
30-
- run: mkdocs gh-deploy --force
25+
path: site

0 commit comments

Comments
 (0)