Skip to content

Commit

Permalink
Update to Zola 19
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelOnFira committed Dec 20, 2024
1 parent 2d56f2b commit c5e58aa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ on:
push:
pull_request:
schedule:
- cron: '0 0 * * MON' # Weekly, Mondays at 00:00
- cron: "0 0 * * MON" # Weekly, Mondays at 00:00

jobs:
zola:
runs-on: ubuntu-latest
env:
BASE_URL: https://github.com/getzola/zola/releases/download
VERS: v0.15.3
VERS: v0.19.0
ARCH: x86_64-unknown-linux-gnu
# https://github.com/crazy-max/ghaction-github-pages/issues/1#issuecomment-623202206
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Install Zola
run: curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz
- run: ./zola --version
- run: ./zola build
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: crazy-max/ghaction-github-pages@v3
with:
build_dir: public
- uses: actions/checkout@v3
- name: Install Zola
run: curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz
- run: ./zola --version
- run: ./zola build
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: crazy-max/ghaction-github-pages@v3
with:
build_dir: public

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pip3 install pytoml
- run: find . -name data.toml | xargs ./sort_data.py
- run: if [[ `git status --porcelain` ]]; then git diff && exit 1; fi
- uses: actions/checkout@v3
- run: pip3 install pytoml
- run: find . -name data.toml | xargs ./sort_data.py
- run: if [[ `git status --porcelain` ]]; then git diff && exit 1; fi
4 changes: 3 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ base_url = "https://arewegameyet.rs/"
# Whether to automatically compile all Sass files in the sass directory
compile_sass = true

# Configure the Markdown rendering
[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
highlight_theme = "base16-ocean-dark"

# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true
Expand Down

0 comments on commit c5e58aa

Please sign in to comment.