Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSOE-597: Breaking API change detector during NuGet publishing #264

Merged
merged 28 commits into from
Oct 11, 2023

Conversation

wAsnk
Copy link
Member

@wAsnk wAsnk commented Oct 9, 2023

OSOE-597
Fixes #220

Comment on lines 185 to 206
- name: Push with dotnet
shell: pwsh
run: dotnet nuget push artifacts/*.nupkg --api-key $Env:API_KEY --source '${{ steps.setup.outputs.source-url }}' --skip-duplicate

- name: Publish Artifacts
uses: actions/[email protected]
with:
name: NuGet-Package
path: artifacts
retention-days: ${{ inputs.nuget-artifact-retention-days }}

# This is not in its own action because it's all very specific to this NuGet publishing.
- name: Create Release
# v1.11.2
uses: ncipollo/release-action@18eadf9c9b0f226f47f164f5373c6a44f0aae169
# This is to prevent creating releases when pushing tags for issue-specific pre-releases like
# v4.3.1-alpha.osoe-86.
if: "!contains(steps.setup.outputs.publish-version, '-')"
with:
allowUpdates: true
generateReleaseNotes: true
artifacts: artifacts/*.nupkg, artifacts/*.snupkg
Copy link
Member Author

@wAsnk wAsnk Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this part until testing, so NuGet packages are not published. When the reviewer is done I'll restore this part.

.github/actions/publish-nuget/New-NuGetPackage.ps1 Outdated Show resolved Hide resolved
.github/actions/publish-nuget/New-NuGetPackage.ps1 Outdated Show resolved Hide resolved
.github/actions/publish-nuget/New-NuGetPackage.ps1 Outdated Show resolved Hide resolved
.github/actions/publish-nuget/New-NuGetPackage.ps1 Outdated Show resolved Hide resolved
.github/actions/publish-nuget/New-NuGetPackage.ps1 Outdated Show resolved Hide resolved
@sarahelsaig
Copy link
Member

Approved. Please revert #264 (comment) and then you can go ahead and merge too.

@wAsnk
Copy link
Member Author

wAsnk commented Oct 10, 2023

Approved. Please revert #264 (comment) and then you can go ahead and merge too.

Please approve the PR otherwise the Validate GitHub Actions Refs check will fail.

@wAsnk
Copy link
Member Author

wAsnk commented Oct 11, 2023

@DAud-IcI

Copy link
Member

@sarahelsaig sarahelsaig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please approve the PR otherwise the Validate GitHub Actions Refs check will fail.

Neat!

@sarahelsaig
Copy link
Member

validate-gha-refs still fails though.

Error: .github/workflows/publish-nuget.yml#L78 - called GitHub Action does not match expected Ref 'issue/OSOE-597'.
Error: Check Job Summary for more details on which GitHub Actions Refs do not match 'issue/OSOE-597'.
Error: Process completed with exit code 1.

@wAsnk
Copy link
Member Author

wAsnk commented Oct 11, 2023

This was fun!

@wAsnk wAsnk merged commit e6cb434 into dev Oct 11, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking API change detector during NuGet publishing (OSOE-597)
2 participants