Skip to content

Commit 4b540bd

Browse files
committed
v0.1.0
1 parent 2d3a3d8 commit 4b540bd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

deploy.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,21 @@ try {
5353

5454
if (ghPagesExists) {
5555
exec("git checkout gh-pages");
56+
exec("git add -A");
57+
exec("git stash");
5658
} else {
5759
throw new Error("No gh-pages branch found");
5860
}
5961

6062
console.log("Copying build artifacts...");
6163
cpSync(tempDir, ".", { recursive: true });
6264
console.log("Committing changes...");
65+
6366
exec("git add -A");
6467
exec(`git commit -m "Deploy from ${currentBranch} @ ${currentCommit}"`);
6568

6669
console.log(`Returning to ${currentBranch}...`);
70+
exec(`git stash pop`);
6771
exec(`git checkout ${currentBranch}`);
6872
rmSync(tempDir, { recursive: true, force: true });
6973
console.log("Deployment complete! gh-pages branch updated locally.");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "regular-layout",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"description": "A regular CSS `grid` container",
55
"keywords": [],
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)