Skip to content

Commit

Permalink
need a signing list
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpowell committed Oct 18, 2024
1 parent 89a9baa commit d34d50f
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 22 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/dotnet-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ jobs:
name: nuget-packages
path: ./nuget

- name: Upload Package List
uses: actions/upload-artifact@v4
with:
name: nuget-list
if-no-files-found: error
path: |
${{ github.workspace }}/.github/workflows/SignClientFileList.txt
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
Expand Down Expand Up @@ -146,7 +154,13 @@ jobs:
uses: actions/download-artifact@v4
with:
name: nuget-packages
path: ./
path: ${{ github.workspace }}/packages

- name: Download NuGet package list
uses: actions/download-artifact@v4
with:
name: nuget-list
path: ${{ github.workspace }}

- name: Install Signing Tool
run: dotnet tool install --tool-path ./tools sign --version 0.9.1-beta.23356.1
Expand Down Expand Up @@ -203,3 +217,4 @@ jobs:

- name: Publish to GitHub packages
run: dotnet nuget push ./*.nupkg --source "https://nuget.pkg.github.com/communitytoolkit/index.json" --api-key ${{ secrets.GITHUB_TOKEN }}

55 changes: 34 additions & 21 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/setup-go@v5
name: Set up Go
with:
go-version: '^1.22.1'
go-version: "^1.22.1"
cache-dependency-path: |
./**/go.sum
- uses: actions/setup-java@v4
Expand Down Expand Up @@ -100,6 +100,14 @@ jobs:
name: nuget-packages
path: ./nuget

- name: Upload Package List
uses: actions/upload-artifact@v4
with:
name: nuget-list
if-no-files-found: error
path: |
${{ github.workspace }}/.github/workflows/SignedPackageFileList.txt
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
Expand Down Expand Up @@ -130,25 +138,8 @@ jobs:
path: "*.trx"
reporter: dotnet-trx

release:
needs: build
runs-on: ubuntu-latest
environment:
name: release
steps:
- name: Download package
uses: actions/download-artifact@v4
with:
name: nuget-packages

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
./*.nupkg
sign:
needs: release
needs: build
runs-on: windows-latest
permissions:
id-token: write # Required for requesting the JWT
Expand All @@ -163,7 +154,13 @@ jobs:
uses: actions/download-artifact@v4
with:
name: nuget-packages
path: ./
path: ${{ github.workspace }}/packages

- name: Download NuGet package list
uses: actions/download-artifact@v4
with:
name: nuget-list
path: ${{ github.workspace }}

- name: Install Signing Tool
run: dotnet tool install --tool-path ./tools sign --version 0.9.1-beta.23356.1
Expand Down Expand Up @@ -193,6 +190,23 @@ jobs:
path: |
${{ github.workspace }}/packages/**/*.nupkg
release:
needs: sign
runs-on: ubuntu-latest
environment:
name: release
steps:
- name: Download package
uses: actions/download-artifact@v4
with:
name: signed-nuget-packages

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
./*.nupkg
publish-nuget:
needs: sign
runs-on: ubuntu-latest
Expand Down Expand Up @@ -220,4 +234,3 @@ jobs:

- name: Publish to GitHub packages
run: dotnet nuget push ./*.nupkg --source "https://nuget.pkg.github.com/communitytoolkit/index.json" --api-key ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d34d50f

Please sign in to comment.