Skip to content

Commit 940afa8

Browse files
committed
Provide prebuilt binaries for Zola
All of the patches we needed for the migration have been merged upstream (with some modifications, hence the `sort_by = "permalink"` diff). We don't know how long it will take for Zola to cut a new release, so let's provide our own binaries to blog authors in the meantime.
1 parent 617e6dd commit 940afa8

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
3434

3535
- name: Install Zola
36-
run: cargo install --locked --git https://github.com/senekor/zola --rev 79410eea82f837e4de9b1e4c3905287060b69255
36+
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/senekor/zola/releases/download/v0.20.1-senekor/zola-installer.sh | sh
3737
- run: zola build
3838
- run: cp CNAME ./public/
3939
- run: touch public/.nojekyll

.github/workflows/snapshot_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- run: rustup override set ${{ env.RUST_VERSION }}
1616
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
1717
- name: Install Zola
18-
run: cargo install --locked --git https://github.com/senekor/zola --rev 79410eea82f837e4de9b1e4c3905287060b69255
18+
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/senekor/zola/releases/download/v0.20.1-senekor/zola-installer.sh | sh
1919

2020
- run: git fetch --depth 2
2121
- run: git checkout origin/master

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@ It uses [Zola](https://www.getzola.org/) and is deployed to GitHub Pages via Git
88

99
## Building
1010

11-
To serve the site locally, first install Zola: (takes a couple minutes)
11+
To serve the site locally, first install Zola:
12+
13+
Linux, MacOS:
14+
15+
```sh
16+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/senekor/zola/releases/download/v0.20.1-senekor/zola-installer.sh | sh
17+
```
18+
19+
Windows:
1220

1321
```sh
14-
# using a fork because we rely on a few patches that haven't landed yet
15-
cargo install --locked --git https://github.com/senekor/zola --rev 79410eea82f837e4de9b1e4c3905287060b69255
22+
powershell -ExecutionPolicy Bypass -c "irm https://github.com/senekor/zola/releases/download/v0.20.1-senekor/zola-installer.ps1 | iex"
1623
```
1724

25+
(We're currently using a fork to provide prebuilt binaries until Zola's next official release.)
26+
1827
Now run `zola serve --open`.
1928
The site will be reloaded automatically when you make any changes.
2029

content/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
+++
22
title = "Rust Blog"
33
description = "Empowering everyone to build reliable and efficient software."
4+
sort_by = "permalink"
45
generate_feeds = true
56
[extra]
67
index_title = "The Rust Programming Language Blog"

content/inside-rust/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
+++
22
title = "Inside Rust Blog"
33
description = "Want to follow along with Rust development? Curious how you might get involved? Take a look!"
4+
sort_by = "permalink"
45
generate_feeds = true
56
[extra]
67
index_title = 'The "Inside Rust" Blog'

0 commit comments

Comments
 (0)