Skip to content

Commit

Permalink
fixed surge deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsingh-007 committed Dec 9, 2020
1 parent 57ee17b commit 3a7f5d1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
path: ./build/

- name: Deploying to surge.sh 🐙
run: npx surge -- --token ${{ secrets.SURGE_TOKEN }}
run: npx surge ./build ${{ secrets.SURGE_DOMAIN }} --token ${{ secrets.SURGE_TOKEN }}

- name: Deploying to gh-pages 🚀
uses: peaceiris/actions-gh-pages@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"analyzer": "cross-env ENABLE_BUNDLE_ANLYZER=true npm run release",
"dev": "cross-env NODE_ENV=development webpack --watch",
"start": "cross-env NODE_ENV=development DEV_SERVER=true webpack serve --progress",
"surge": "surge ./build http://bypass-links.surge.sh",
"surge": "surge ./build http://bypass-links-dev.surge.sh",
"release": "cross-env NODE_ENV=production webpack"
}
}
13 changes: 8 additions & 5 deletions release-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ const TIME_OPTIONS = {
timeZone: "Asia/Kolkata",
};

const getCurFormattedDateTime = (date) =>
`${date.toLocaleString("en-IN", DATE_OPTIONS)} ${date.toLocaleTimeString(
const getCurFormattedDateTime = () => {
const date = new Date();
date.setMinutes(date.getMinutes() + 8);
return `${date.toLocaleString(
"en-IN",
TIME_OPTIONS
)}`;
DATE_OPTIONS
)} ${date.toLocaleTimeString("en-IN", TIME_OPTIONS)}`;
};

module.exports = {
releaseDate: getCurFormattedDateTime(new Date()),
releaseDate: getCurFormattedDateTime(),
extVersion: manifest.version,
};

0 comments on commit 3a7f5d1

Please sign in to comment.