Skip to content

Commit

Permalink
Fix: Edited deployment-script
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianberge committed Apr 19, 2024
1 parent 034a8c3 commit a30e5af
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions deploy-script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const ghpages = require("gh-pages");

ghpages.publish("dist", {
branch: "gh-pages",
repo: "https://github.com/sebastianberge/sebastianberge.github.io.git", // Make sure this is your repository URL
user: {
name: "Sebastian Berge",
email: "sebastian@berge.im",
},
silent: false,
dotfiles: true,
message: "Deploy commit",
token: process.env.GH_PAT, // Use the environment variable here
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"deploy": "node deploy-script.js",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",

0 comments on commit a30e5af

Please sign in to comment.