Skip to content

Commit

Permalink
- Updated CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Cornu committed May 21, 2024
1 parent a5e1e5c commit ff016d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,6 @@ jobs:
run: |
npm install -g @microsoft/teamsfx-cli@2.0.1
- name: Load variables
shell: pwsh
working-directory: ./
run: |
./deploy/variables.ci.ps1 -Verbose
- name: Run PowerShell deployment
shell: pwsh
working-directory: ./
Expand Down
2 changes: 0 additions & 2 deletions deploy/deploy-teams.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ switch ($Env) {
# More info about TeamsFx CI/CD deployment:
# https://github.com/OfficeDev/TeamsFx/blob/main/docs/cicd_insider/others-script-cd-template.sh

Write-Verbose $env:GITHUB_ENV

$appFolderPath = Join-Path -Path $PSScriptRoot -ChildPath "..\apps\teams"

Write-Verbose "[TeamsFx] Set path to '$appFolderPath'..."
Expand Down
19 changes: 3 additions & 16 deletions deploy/variables.ci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Variables script for CI deployment
# -----------------------------------------

dir env:

# -----------------------------[Deployment credentials] ------------------------------------
$global:ENV_AzDeployAppId = $env:ENV_AzDeployAppId
$global:ENV_AzDeployAppCertificateValue = $env:ENV_AzDeployAppCertificateValue
Expand All @@ -21,19 +23,4 @@ $global:ENV_M365AccountName = $env:ENV_M365AccountName
$global:ENV_M365AccountPassword = $env:ENV_M365AccountPassword
$global:ENV_M365TenantId = $env:ENV_M365TenantId

$global:ENV_EnvName = $env:ENV_EnvName


# Export variables as .env files so it can be consumed by other jobs
Write-Verbose "Exporting CI variables as artifact"

Get-Variable -Scope Global | Where-Object { $_.Name.StartsWith("ENV_") } | ForEach-Object {
$name= $_.Name
$value = $_.Value

Write-Verbose "Exporting $name"

Add-Content -Path $env:GITHUB_ENV -Value "$name=$value" -Encoding utf8

Write-Host $env:GITHUB_ENV
}
$global:ENV_EnvName = $env:ENV_EnvName

0 comments on commit ff016d4

Please sign in to comment.