Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/tkhv/gpt-lms into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhv committed Nov 27, 2023
2 parents 722a070 + b322e20 commit 14100b3
Showing 1 changed file with 31 additions and 22 deletions.
53 changes: 31 additions & 22 deletions .github/workflows/azure-static-web-apps-icy-plant-0291c0a0f.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,6 @@ on:
types: [opened, synchronize, reopened, closed]
branches:
- prod
secrets:
AZURE_STORAGE_CONNECTION_STRING:
required: true
AZURE_STORAGE_ACCOUNT_NAME:
required: true
AZURE_STORAGE_URL:
required: true
AZURE_TENANT_ID:
required: true
AZURE_CLIENT_ID:
required: true
AZURE_CLIENT_SECRET:
required: true
AZURE_COSMOSDB_PG_URL:
required: true
AZURE_COSMOSDB_PG_USER:
required: true
AZURE_COSMOSDB_PG_PASSWORD:
required: true
AZURE_COSMOSDB_PG_DBNAME:
required: true

jobs:
build_and_deploy_job:
Expand All @@ -43,6 +22,21 @@ jobs:
lfs: false
- name: Print environment variables
run: printenv
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
AZURE_STORAGE_ACCOUNT_NAME: ${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }}
AZURE_STORAGE_URL: ${{ secrets.AZURE_STORAGE_URL }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_COSMOSDB_PG_URL: ${{ secrets.AZURE_COSMOSDB_PG_URL }}
AZURE_COSMOSDB_PG_USER: ${{ secrets.AZURE_COSMOSDB_PG_USER }}
AZURE_COSMOSDB_PG_PASSWORD: ${{ secrets.AZURE_COSMOSDB_PG_PASSWORD }}
AZURE_COSMOSDB_PG_DBNAME: ${{ secrets.AZURE_COSMOSDB_PG_DBNAME }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
GITHUB_ID: ${{ secrets.GITHUB_ID }}
GITHUB_SECRET: ${{ secrets.GITHUB_SECRET }}
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand All @@ -57,7 +51,22 @@ jobs:
api_location: "" # Api source code path - optional
output_location: "" # Built app content directory - optional
###### End of Repository/Build Configurations ######
secrets: inherit
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}
AZURE_STORAGE_ACCOUNT_NAME: ${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }}
AZURE_STORAGE_URL: ${{ secrets.AZURE_STORAGE_URL }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_COSMOSDB_PG_URL: ${{ secrets.AZURE_COSMOSDB_PG_URL }}
AZURE_COSMOSDB_PG_USER: ${{ secrets.AZURE_COSMOSDB_PG_USER }}
AZURE_COSMOSDB_PG_PASSWORD: ${{ secrets.AZURE_COSMOSDB_PG_PASSWORD }}
AZURE_COSMOSDB_PG_DBNAME: ${{ secrets.AZURE_COSMOSDB_PG_DBNAME }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
GITHUB_ID: ${{ secrets.GITHUB_ID }}
GITHUB_SECRET: ${{ secrets.GITHUB_SECRET }}


close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand Down

0 comments on commit 14100b3

Please sign in to comment.