-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feature to share news/posts/articles (#162) * feature to share news/posts/articles * added title and source to share model * added title, removed redundancy of props * colorful icons & title prop added to button * css updated * css changes * fixed block-action-btns * Merge branch 'shareFeature' of github.com:idebenone/hackertab.dev * fix yarn.lock * persist fetched queries in localstorage * improve the share modal UI * track copy and share events * tag hackertabdev twitter account * add missing api url --------- Co-authored-by: Vineeth <[email protected]>
- Loading branch information
Showing
45 changed files
with
1,782 additions
and
9,335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,40 @@ | ||
name: Deploy to production | ||
name: Deploy Web Version to hackertab.dev | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
jobs: | ||
deploy: | ||
branches: | ||
- feat/cp-build | ||
env: | ||
VITE_BUILD_TARGET: 'web' | ||
VITE_AMPLITUDE_KEY: ${{ secrets.REACT_APP_AMPLITUDE_KEY }} | ||
VITE_AMPLITUDE_URL: ${{ secrets.REACT_APP_AMPLITUDE_URL }} | ||
VITE_API_URL: ${{ secrets.API_URL }} | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: SSH and deploy node app | ||
uses: fifsky/ssh-action@master | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
user: ${{ secrets.SSH_USERNAME }} | ||
key: ${{ secrets.SSH_KEY }} | ||
command: | | ||
cd ~/hackertab.dev | ||
git pull origin master | ||
yarn | ||
yarn build-web | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build project | ||
run: yarn build:web | ||
|
||
- name: Copy build to remote host | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.DEPLOY_SSH_HOST }} | ||
username: ${{ secrets.DEPLOY_SSH_USERNAME }} | ||
key: ${{ secrets.DEPLOY_SSH_KEY }} | ||
source: 'dist/' | ||
target: '~/hackertab.dev' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,10 @@ on: | |
default: false | ||
type: boolean | ||
env: | ||
REACT_APP_BUILD_TARGET: 'extension' | ||
REACT_APP_AMPLITUDE_KEY: ${{ secrets.REACT_APP_AMPLITUDE_KEY }} | ||
REACT_APP_AMPLITUDE_URL: ${{ secrets.REACT_APP_AMPLITUDE_URL }} | ||
VITE_BUILD_TARGET: 'extension' | ||
VITE_AMPLITUDE_KEY: ${{ secrets.REACT_APP_AMPLITUDE_KEY }} | ||
VITE_AMPLITUDE_URL: ${{ secrets.REACT_APP_AMPLITUDE_URL }} | ||
VITE_API_URL: ${{ secrets.API_URL }} | ||
|
||
jobs: | ||
tag_version: | ||
|
@@ -73,9 +74,7 @@ jobs: | |
run: yarn | ||
|
||
- name: Build and zip the extension | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: yarn build-chrome | ||
run: yarn build:chrome | ||
|
||
- name: Install chrome dependencies | ||
run: yarn global add chrome-webstore-upload-cli | ||
|
@@ -105,10 +104,7 @@ jobs: | |
run: yarn | ||
|
||
- name: Build and zip the extension | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: yarn build-firefox | ||
|
||
run: yarn build:firefox | ||
- name: Upload the package to Firefox web store | ||
if: ${{ github.event.inputs.testMode == 'false' }} | ||
uses: yayuyokitano/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
# production | ||
/build | ||
|
||
/dist | ||
# misc | ||
.DS_Store | ||
.env.local | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
#!/bin/bash | ||
|
||
build() { | ||
echo 'building react' | ||
|
||
echo 'Building Hackertab...' | ||
rm -rf dist | ||
|
||
export INLINE_RUNTIME_CHUNK=false | ||
export GENERATE_SOURCEMAP=false | ||
|
||
react-scripts build | ||
|
||
mkdir -p dist | ||
cp -r build/* dist/ | ||
tsc | ||
vite build | ||
} | ||
|
||
build |
Oops, something went wrong.