Skip to content

Commit

Permalink
Feature - Deployment + Comment Removal
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhixuan committed Dec 22, 2023
1 parent 0422ea6 commit d284e66
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 32 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@

name: Deploy to Firebase Hosting on merge
"on":
push:
branches:
- main
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: npm install & Next Build and Export
working-directory: ./client
run: npm install && npm run out
# - uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# repoToken: "${{ secrets.GITHUB_TOKEN }}"
# firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_RECYCLEGOWHERE }}"
# channelId: live
# projectId: recyclegowhere
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: npm install & Next Build and Export
working-directory: ./client
run: npm install && npm run out
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_RECYCLEGOWHERE }}"
channelId: live
projectId: recyclegowhere
26 changes: 13 additions & 13 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
name: Deploy to Firebase Hosting on PR
"on": pull_request
jobs:
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: npm install & Next Build and Export
working-directory: ./client
run: npm install && npm run out
# - uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# repoToken: "${{ secrets.GITHUB_TOKEN }}"
# firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_RECYCLEGOWHERE }}"
# projectId: recyclegowhere
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: npm install & Next Build and Export
working-directory: ./client
run: npm install && npm run out
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_RECYCLEGOWHERE }}"
projectId: recyclegowhere
3 changes: 1 addition & 2 deletions client/spa-pages/components/MapPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ const MapInner = ({ setPage }: Props) => {

// Handle the changing of location in this page itself
const handleChangedLocation = (itemEntry: (TItemSelection | TEmptyItem)[]) => {
console.log(itemEntry);
const locations = getNearbyFacilities(
itemEntry as TItemSelection[],
address,
Expand Down Expand Up @@ -631,7 +630,7 @@ export const checkboxChange = (
updatedOptions = selectedOptions.filter((option) => option.value !== e.target.value);
}
return { updatedItemState, updatedOptions };
}
};

const CustomMultiValueLabel = (props: any) => {
const { getItemCategory } = useSheetyData();
Expand Down
1 change: 0 additions & 1 deletion client/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export const getNearbyFacilities = (
});

const route = dijkstra(allFacilities, address, userCats);
console.log(route.complete);
return {
results: res,
facilitiesList: allFacilityIds,
Expand Down

0 comments on commit d284e66

Please sign in to comment.