Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,31 @@ jobs:
enable-email-notifications: true # Enable email notifications on failure
runner-os: windows-latest # OS for the runner (windows-latest, ubuntu-latest, etc.)
secrets:
NUGET_UPLOAD_TOKEN: ${{ secrets.EVERGINE_NUGETORG_TOKEN }}
WAVE_SENDGRID_TOKEN: ${{ secrets.WAVE_SENDGRID_TOKEN }}
EVERGINE_EMAILREPORT_LIST: ${{ secrets.EVERGINE_EMAILREPORT_LIST }}
EVERGINE_EMAIL: ${{ secrets.EVERGINE_EMAIL }}

# nuget.org trusted publishing validates the workflow file the pushing job is defined in,
# and it has to belong to this repository, so the push cannot happen inside the reusable workflow.
publish:
needs: cd
if: needs.cd.outputs.publish == 'true'
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: nuget-packages
path: nupkgs
- uses: NuGet/login@v1
id: login
with:
user: ${{ vars.EVERGINE_NUGETORG_USER }}
- uses: EvergineTeam/Evergine.Bindings/.github/actions/nuget-publish@v1
with:
auth-token: ${{ steps.login.outputs.NUGET_API_KEY }}

# Tips:
# - For direct version (add-ons style):
# version: "3.4.22.288-local"
Expand Down
Loading