diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index e98aa81..b9ea69d 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -1,55 +1,55 @@ -name: BuildAndPublish -on: - push: - branches: - - master - - develop - - feature/* - - hotfix/* - - release/* - pull_request: - -permissions: - id-token: write - contents: read - attestations: write - -jobs: - build: - name: Build - runs-on: ubuntu-latest - timeout-minutes: 5 - - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Setup dotnet 3 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.x - - - name: Setup dotnet 8 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 8.x - - - name: build and publish - env: - COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }} - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} - shell: pwsh - run: | - ./build.ps1 -nugetPublish $true -nugetApiKey ${{ secrets.NUGET_API_KEY }} - - - name: Generate artifact attestation - uses: actions/attest-build-provenance@v1 - with: - subject-path: 'artifacts/NuGet' - - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: nuget-packages - path: artifacts/NuGet \ No newline at end of file +name: BuildAndPublish +on: + push: + branches: + - master + - develop + - feature/* + - hotfix/* + - release/* + pull_request: + +permissions: + id-token: write + contents: read + attestations: write + +jobs: + build: + name: Build + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup dotnet 3 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.x + + - name: Setup dotnet 8 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 8.x + + - name: build and publish + env: + COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }} + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + shell: pwsh + run: | + ./build.ps1 -nugetPublish $true -nugetApiKey ${{ secrets.NUGET_API_KEY }} + + - name: Generate artifact attestation + uses: actions/attest-build-provenance@v1 + with: + subject-path: 'artifacts/NuGet' + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: nuget-packages + path: artifacts/NuGet