Skip to content

Commit

Permalink
Added carbon impact of cloud providers (#58)
Browse files Browse the repository at this point in the history
* Added carbon output of using a cloud instances

* Updated location of providers.json

* Updated unit tests
  • Loading branch information
michaelshin authored Apr 5, 2023
1 parent 4c904c5 commit bcb49a2
Show file tree
Hide file tree
Showing 11 changed files with 1,111 additions and 74 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-cloud-providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- main
paths:
- 'skyline-vscode/react-ui/src/schema/providers.json'
- 'skyline-vscode/react-ui/public/providers.json'

jobs:
update-information:
Expand All @@ -26,5 +26,5 @@ jobs:

- name: Upload cloud provider file to S3
run: |
aws s3 cp skyline-vscode/react-ui/src/schema/providers.json s3://deepview-explorer-public/vscode-cloud-providers/
aws s3 cp skyline-vscode/react-ui/public/providers.json s3://deepview-explorer-public/vscode-cloud-providers/
aws s3api put-object-acl --bucket deepview-explorer-public --key vscode-cloud-providers/providers.json --acl public-read
2 changes: 1 addition & 1 deletion skyline-vscode/react-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "GENERATE_SOURCEMAP=false react-scripts build",
"build": "GENERATE_SOURCEMAP=false react-scripts build && rm ./build/providers.json",
"test": "jest",
"eject": "react-scripts eject"
},
Expand Down
Loading

0 comments on commit bcb49a2

Please sign in to comment.