Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support env variables in script update zola to next version #20

Merged
merged 2 commits into from
Feb 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/create-zola-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"yargs": "^17.6.2"
},
"devDependencies": {
"zola-bin": "^0.3.5"
"zola-bin": "^0.3.6"
},
"engines": {
"node": ">=14.0.0"
Expand Down
26 changes: 13 additions & 13 deletions packages/zola-bin-darwin/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "zola-bin-darwin",
"version": "0.16.2",
"description": "The binary file of Zola",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/U-C-S/zola-tools",
"directory": "packages/zola-bin-darwin"
},
"os": [
"darwin"
],
"license": "MIT"
"name": "zola-bin-darwin",
"version": "0.17.0",
"description": "The binary file of Zola",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/U-C-S/zola-tools",
"directory": "packages/zola-bin-darwin"
},
"os": [
"darwin"
],
"license": "MIT"
}
26 changes: 13 additions & 13 deletions packages/zola-bin-linux/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "zola-bin-linux",
"version": "0.16.2",
"description": "The binary file of Zola",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/U-C-S/zola-tools",
"directory": "packages/zola-bin-linux"
},
"os": [
"linux"
],
"license": "MIT"
"name": "zola-bin-linux",
"version": "0.17.0",
"description": "The binary file of Zola",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/U-C-S/zola-tools",
"directory": "packages/zola-bin-linux"
},
"os": [
"linux"
],
"license": "MIT"
}
26 changes: 13 additions & 13 deletions packages/zola-bin-win32/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "zola-bin-win32",
"version": "0.16.2",
"description": "The binary file of Zola",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/U-C-S/zola-tools",
"directory": "packages/zola-bin-win32"
},
"os": [
"win32"
],
"license": "MIT"
"name": "zola-bin-win32",
"version": "0.17.0",
"description": "The binary file of Zola",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/U-C-S/zola-tools",
"directory": "packages/zola-bin-win32"
},
"os": [
"win32"
],
"license": "MIT"
}
Empty file modified packages/zola-bin/bin/zola.js
100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions packages/zola-bin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zola-bin",
"version": "0.3.5",
"version": "0.3.6",
"author": "U-C-S",
"license": "MIT",
"description": "Zola, A Static Site Generator, as a NPM Package",
Expand All @@ -27,9 +27,9 @@
"dotenv": "16.0.3"
},
"optionalDependencies": {
"zola-bin-darwin": "^0.16.2",
"zola-bin-linux": "^0.16.2",
"zola-bin-win32": "^0.16.2"
"zola-bin-darwin": "^0.17.0",
"zola-bin-linux": "^0.17.0",
"zola-bin-win32": "^0.17.0"
},
"devDependencies": {
"typescript": "^4.9.4"
Expand Down
2 changes: 1 addition & 1 deletion scripts/getzola.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Octokit } from "@octokit/rest";
import extract from "extract-zip";
import tar from "tar";

const ZOLA_VERSION = fs.readFileSync("./zola-version.txt", "utf8"); // TODO: support a env variable for zola version for CI/CD
const ZOLA_VERSION = process.env.ZOLA_VERSION ? process.env.ZOLA_VERSION : fs.readFileSync("./zola-version.txt", "utf8");
const downloadCacheDir = "./.cache/zola_bin";

console.log(`Downloading Zola ${ZOLA_VERSION}...`);
Expand Down
2 changes: 1 addition & 1 deletion zola-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.16.1
v0.17.0