Update checkout
to v4 and unbuild the themes
This commit is contained in:
parent
e090a4bde5
commit
0c0ddcf97d
2 changed files with 18 additions and 8 deletions
24
.github/workflows/cd.yml
vendored
24
.github/workflows/cd.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue