diff --git a/actions/run-scripted-build/action.yml b/actions/run-scripted-build/action.yml index 6bde932..865db42 100644 --- a/actions/run-scripted-build/action.yml +++ b/actions/run-scripted-build/action.yml @@ -118,7 +118,7 @@ runs: -Configuration ${{ inputs.configuration }} shell: pwsh env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ env.GH_TOKEN != '' && env.GH_TOKEN || github.token }} NUGET_PACKAGES: ${{ github.workspace }}/.nuget-packages - name: Save Cached Outputs diff --git a/actions/vellum-site-build/action.yml b/actions/vellum-site-build/action.yml index 546f31c..10d8d63 100644 --- a/actions/vellum-site-build/action.yml +++ b/actions/vellum-site-build/action.yml @@ -24,17 +24,15 @@ runs: restore-keys: | ${{ runner.os }}-npm- - - name: Build + - uses: endjin/Endjin.RecommendedPractices.GitHubActions/actions/run-scripted-build@main id: build - run: | - if ($env:GITHUB_REF -eq "refs/heads/main") { - $env:BUILDVAR_RebuildSearchIndex = "True" - } - & ${{ inputs.buildScriptPath }} -Verbose - shell: pwsh + with: + additionalNetSdkVersion: '9.x' + tasks: '.' env: GH_TOKEN : ${{ inputs.githubVellumPat }} NPM_CACHE_HIT: ${{ steps.cache_npm_dependencies.outputs.cache-hit }} + BUILDVAR_RebuildSearchIndex: ${{ github.ref == 'refs/heads/main' && 'True' || 'False' }} - run: | zip -r website.zip ${{ github.workspace }}/.dist