Skip to content

Commit ceca0ea

Browse files
authored
Fix nojekyll (#15)
* Fix: nojekyll * Fix: nojekyll v2 * Feat: new way of pages deploy
1 parent c7d22d6 commit ceca0ea

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
schedule:
88
- cron: '0 */8 * * *'
99
jobs:
10-
deploy-pages:
10+
build:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Install poetry
@@ -58,19 +58,23 @@ jobs:
5858
path: |
5959
*_mkdocs_build.log
6060
*_mkdocs_debug.zip
61-
- name: Commit static site to repository with GitHub Pages enabled
62-
uses: cpina/github-action-push-to-another-repository@main
63-
env:
64-
API_TOKEN_GITHUB: ${{ secrets.DEPLOY_PAGES_TOKEN }}
61+
- name: Upload static files as artifact
62+
id: deployment
63+
uses: actions/upload-pages-artifact@v3
6564
with:
66-
user-name: ${{ secrets.USER_NAME }}
67-
user-email: ${{ secrets.USER_EMAIL }}
68-
source-directory: docs
69-
destination-github-username: ${{ secrets.USER_NAME }}
70-
destination-repository-name: mkdocs-publisher.github.io
71-
target-branch: docs
65+
path: docs/
7266
- name: Save MkDocs files cache
7367
uses: actions/cache/save@v3
7468
with:
7569
path: .pub_min_cache
7670
key: mkdocs-publisher-cache-${{ github.run_id }}
71+
deploy:
72+
environment:
73+
name: github-pages
74+
url: ${{ steps.deployment.outputs.page_url }}
75+
runs-on: ubuntu-latest
76+
needs: build
77+
steps:
78+
- name: Deploy to GitHub Pages
79+
id: deployment
80+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)