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: on:
push: push:
branches: branches:
@ -8,10 +10,18 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Build and deploy zola - name: Install Zola
uses: shalzz/zola-deploy-action@master run: |
env: 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
PAGES_BRANCH: gh-pages - name: Install ghp-import
TOKEN: ${{ secrets.PAT }} run: sudo pip install ghp-import
BUILD_THEMES: true - 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" default_language = "ar"
theme = "tabi" theme = "tabi"