From 0c0ddcf97d850f9617de8175be809eeb043c7e4d Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sat, 17 Feb 2024 23:29:12 +0300 Subject: [PATCH] Update `checkout` to v4 and unbuild the themes --- .github/workflows/cd.yml | 24 +++++++++++++++++------- config.toml | 2 +- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 0351533..c0d043d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 diff --git a/config.toml b/config.toml index 89816ad..bd97b3f 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -base_url = "https://awiteb.is-a.dev" +base_url = "https://theawiteb.github.io" default_language = "ar" theme = "tabi"