Update checkout to v4 and unbuild the themes

This commit is contained in:
Awiteb 2024-02-17 23:29:12 +03:00
parent e090a4bde5
commit 0c0ddcf97d
No known key found for this signature in database
GPG key ID: 16C8AD0B49C39C88
2 changed files with 18 additions and 8 deletions

View file

@ -1,3 +1,5 @@
name: Deploy blog to GitHub Pages
on:
push:
branches:
@ -8,10 +10,18 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and deploy zola
uses: shalzz/zola-deploy-action@master
env:
PAGES_BRANCH: gh-pages
TOKEN: ${{ secrets.PAT }}
BUILD_THEMES: true
uses: actions/checkout@v4
- name: Install Zola
run: |
curl -s -L https://github.com/getzola/zola/releases/download/v0.18.0/zola-v0.18.0-x86_64-unknown-linux-gnu.tar.gz | sudo tar xvzf - -C /usr/local/bin
- name: Install ghp-import
run: sudo pip install ghp-import
- name: Update submodules
run: git submodule update --init
- name: Build blog
run: zola build -o public
- name: Deploy to GitHub Pages
run: |
ghp-import -n public -b gh-pages
git remote set-url origin https://{{ secrets.PAT }}@github.com/TheAwiteb/TheAwiteb.github.io.git
git push -f origin gh-pages

View file

@ -1,4 +1,4 @@
base_url = "https://awiteb.is-a.dev"
base_url = "https://theawiteb.github.io"
default_language = "ar"
theme = "tabi"