Skip to content

Commit

Permalink
Merge pull request #20 from kogeletey/main
Browse files Browse the repository at this point in the history
Support env variables in script update zola to next version
  • Loading branch information
U-C-S authored Feb 25, 2023
2 parents cdb5b00 + e889c41 commit dfe0c88
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 46 deletions.
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

0 comments on commit dfe0c88

Please sign in to comment.