diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c89b36ba4a..1ad60755fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: - "*.*.*" permissions: id-token: write - contents: read + contents: write checks: write jobs: build: @@ -91,6 +91,17 @@ jobs: NUGET_API_KEY: ${{ secrets.AUTOMAPPER_NUGET_API_KEY }} run: ./Push.ps1 shell: pwsh + - name: Attach assets to GitHub Release + env: + GH_TOKEN: ${{ github.token }} + run: | + $assets = @() + $assets += Get-ChildItem ./artifacts -Filter *.nupkg | ForEach-Object { $_.FullName } + $assets += Get-ChildItem ./artifacts -Filter *.snupkg | ForEach-Object { $_.FullName } + $assets += './artifacts/_manifest/spdx_2.2/manifest.spdx.json' + $assets += './artifacts/_manifest/spdx_2.2/manifest.spdx.json.sha256' + gh release upload ${{ github.ref_name }} $assets --clobber + shell: pwsh - name: Artifacts uses: actions/upload-artifact@v4 with: