Skip to content

Commit

Permalink
fix site extension release GHA. (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
vuqtran88 authored Mar 5, 2021
1 parent 4d0fd80 commit 2bf4fc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy_siteextension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:

deploy-nuget:
needs: get-external-artifacts
if: ${{ github.event.inputs.nuget == 'true' }}
name: Deploy to NuGet
runs-on: windows-2019

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/siteextension_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
name: Run ArtifactBuilder
runs-on: windows-2019

env:
artifacts_script_path: ${{ github.workspace }}\build

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -34,10 +37,9 @@ jobs:

- name: Run ArtifactBuilder
run: |
$rootDirectory = Resolve-Path "$(Split-Path -Parent $PSCommandPath)\.."
$configuration = "Release"
$artifactBuilderCsproj = "$rootDirectory\build\ArtifactBuilder\ArtifactBuilder.csproj"
& "$rootDirectory\build\generateBuildProperties.ps1" -outputPath "$rootDirectory\build\BuildArtifacts\_buildProperties"
$artifactBuilderCsproj = "${{ env.artifacts_script_path }}\ArtifactBuilder\ArtifactBuilder.csproj"
& "${{ env.artifacts_script_path }}\generateBuildProperties.ps1" -outputPath "${{ env.artifacts_script_path }}\BuildArtifacts\_buildProperties"
dotnet run --project "$artifactBuilderCsproj" AzureSiteExtension $configuration
shell: powershell

Expand Down

0 comments on commit 2bf4fc0

Please sign in to comment.