Skip to content

Fix indentation for include-hidden-files in workflow #56

Fix indentation for include-hidden-files in workflow

Fix indentation for include-hidden-files in workflow #56

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Install Turkish language pack
run: |
sudo apt-get update
sudo apt-get install -y language-pack-tr gettext
- name: Inject Turkish language files into docutils
run: |
DOCUTILS_PATH=$(pip show docutils | grep Location | awk '{print $2}')
echo "Injecting Turkish language files into: $DOCUTILS_PATH"
cp tr_lang.py $DOCUTILS_PATH/docutils/languages/tr.py
cp tr_rst_lang.py $DOCUTILS_PATH/docutils/parsers/rst/languages/tr.py
- name: Build site
run: |
pelican --settings publishconf.py \
--extra-settings "SITEURL=\"https://yuceltoluyag.github.io\"" \
--extra-settings "FEED_DOMAIN=\"https://yuceltoluyag.github.io\"" \
--output output
- name: Upload Pages artifact
# Sürümü v3'e düşürdük
uses: actions/upload-pages-artifact@v5
with:
path: output
include-hidden-files: true
- name: Deploy to GitHub Pages
id: deployment
# deploy-pages action'ının v4 olması sorun değil
uses: actions/deploy-pages@v5