-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added support for sending email via smtp Also kept support for the old method * Updated email code and removed old auth route * Bug fix and updated deployment variables
- Loading branch information
Showing
5 changed files
with
49 additions
and
30 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,6 +1,6 @@ | ||
name: Deploy prod | ||
|
||
on: | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
@@ -41,6 +41,9 @@ env: | |
ORIGIN: ${{ secrets.ORIGIN }} | ||
|
||
EMAIL_SENDER: ${{ secrets.EMAIL_SENDER }} | ||
SMTP_EMAIL_HOST: ${{ secrets.SMTP_EMAIL_HOST }} | ||
SMTP_EMAIL_USER: ${{ secrets.SMTP_EMAIL_USER }} | ||
SMTP_EMAIL_PASSWORD: ${{ secrets.SMTP_EMAIL_PASSWORD }} | ||
|
||
EXPLORER_API_KEY: ${{ secrets.EXPLORER_API_KEY }} | ||
|
||
|
@@ -68,7 +71,7 @@ jobs: | |
run: | | ||
yarn install | ||
yarn run deploy | ||
- name: Install CDK | ||
run: | | ||
npm install -g [email protected] | ||
|
@@ -81,7 +84,7 @@ jobs: | |
working-directory: ./cdk | ||
run: | | ||
pip install -r requirements.txt | ||
cdk deploy openaq-api-prod --require-approval never | ||
cdk deploy openaq-api-prod --require-approval never | ||
update-docs: | ||
needs: deploy | ||
|
@@ -93,7 +96,7 @@ jobs: | |
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.11' | ||
|
@@ -105,4 +108,4 @@ jobs: | |
npm install -g rdme@latest | ||
python generate_schema.py | ||
VERSION= | ||
rdme openapi openapi.json --version=$VERSION --key=${{ secrets.README_KEY }} --id=${{ secrets.README_API_DEFINITION_ID }} | ||
rdme openapi openapi.json --version=$VERSION --key=${{ secrets.README_KEY }} --id=${{ secrets.README_API_DEFINITION_ID }} |
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