Update jekyll-gh-pages.yml #333
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy docs as static HTML | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# 1 ▸ код | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# 2 ▸ перетворюємо Markdown → HTML за допомогою GitHub-овського швидкого Jekyll-білда | |
- name: Convert docs → _site (Jekyll quick build) | |
uses: actions/jekyll-build-pages@v1 | |
with: | |
source: ./docs # <-- змінити, якщо контент у docs_en | |
destination: ./_site | |
# 3 ▸ чистимо symlink-и (про всяк) | |
- name: Purge symlinks | |
run: | | |
find _site -type l -delete | |
# 4 ▸ пакуємо сучасним upload-artifact@v4 | |
- name: Upload artifact for Pages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: github-pages # <-- ОБОВʼЯЗКОВО таке імʼя! | |
path: ./_site | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |