Skip to content

Sun Feb 16 09:50:54 PM CET 2025 #607

Sun Feb 16 09:50:54 PM CET 2025

Sun Feb 16 09:50:54 PM CET 2025 #607

Workflow file for this run

name: Xlog
on:
push:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Allow non-ASCII character
run: git config core.quotepath false
- name: restore timestamps
uses: chetan/git-restore-mtime-action@v1
- name: Install xlog
env:
XLOG_VERSION: v1.7.8
run: curl --location https://github.com/emad-elsaid/xlog/releases/download/${XLOG_VERSION}/xlog-${XLOG_VERSION}-linux-amd64.tar.gz | tar -xz -C ..
- name: Build
run: |
../xlog \
--build . \
--sitename="Emad Elsaid" \
--theme="light" \
--codestyle="catppuccin-latte" \
--index=Home \
--custom.head=header.html \
--sitemap.domain=www.emadelsaid.com \
--activitypub.domain=www.emadelsaid.com \
--activitypub.username=Emad \
--activitypub.summary="A Software Engineer. Ruby Golang. ๐Ÿ‡ช๐Ÿ‡ฌ Egyptian ๐Ÿ“ท Youtuber ๐ŸŽฎ Casual gamer and ๐Ÿš€ Sci-Fi addict. My opinions are my own" \
--og.domain=www.emadelsaid.com \
--twitter.username=@emad__elsaid \
--github.url=https://github.com/emad-elsaid/emad-elsaid.github.io/edit/master \
--rss.domain=www.emadelsaid.com \
--rss.description="A Software Engineer. Ruby Golang. ๐Ÿ‡ช๐Ÿ‡ฌ Egyptian ๐Ÿ“ท Youtuber ๐ŸŽฎ Casual gamer and ๐Ÿš€ Sci-Fi addict. My opinions are my own"
rm *.md
chmod -R 0777 .
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: .
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4