Skip to content

Commit

Permalink
add a built step to publish pr builds to the github nuget registry (#303
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hahn-kev authored Jul 19, 2024
1 parent 1fbecf8 commit 1fc0eb6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ jobs:
- name: Solve problems
run: Remove-Item c:\tools\php\icuuc*.dll -Force
if: matrix.os == 'windows-latest'

- name: Download 461 targeting pack
uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # 1.6.0
id: downloadfile # Remember to give an ID if you need the output filename
with:
url: "https://download.microsoft.com/download/F/1/D/F1DEB8DB-D277-4EF9-9F48-3A65D4D8F965/NDP461-DevPack-KB3105179-ENU.exe"
target: public/
if: matrix.os == 'windows-latest'

- name: Install targeting pack
shell: cmd
working-directory: public
Expand All @@ -81,6 +81,10 @@ jobs:
run: dotnet nuget push artifacts/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.SILLSDEV_PUBLISH_NUGET_ORG}} --skip-duplicate
if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'

- name: Publish to Github packages
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest'
run: dotnet nuget push artifacts/*.nupkg -s https://nuget.pkg.github.com/sillsdev/index.json -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate

- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 1fc0eb6

Please sign in to comment.