build: Update publish-documentation workflow #328
Workflow file for this run
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
name: Build and Test | |
on: | |
pull_request: | |
paths: | |
- 'Source/**' | |
- 'Tests/**' | |
- '.github/workflows/ci-build.yml' | |
- '*.props' | |
- '*.targets' | |
workflow_dispatch: | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
NUGET_AUTH_TOKEN: ${{secrets.PUBLISH_TO_NUGET_ORG}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: pwsh | |
steps: | |
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "π‘ The ${{ github.repository }} repository has been cloned to the runner." | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.403' | |
- name: Run Build Script | |
run: ./.github/workflows/build.ps1 | |
working-directory: ${{ github.workspace }} | |
- name: Run Test Script | |
run: ./.github/workflows/test.ps1 | |
working-directory: ${{ github.workspace }} | |
# End to End Tests | |
- name: Run End-to-End Tests | |
run: ./RunE2ETests.ps1 | |
working-directory: ${{ github.workspace }} | |
env: | |
UseHttp: "true" | |
- run: echo "π This job's status is ${{ job.status }}." |