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

ci: GitHub Actions update #352

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

VaclavElias
Copy link

@VaclavElias VaclavElias commented Dec 29, 2024

This is the final PR, which will create a tag and draft release. The main aim of these changes is to make it easier to see what PRs were made each release.

  • updated: dotnet-core.yml
    • Disabling NuGet Publish
    • Add ignore paths, no need to trigger GitHub Actions when certain folders are updated
    • Actions version bumped
    • Name renamed
  • new: dotnet-core-publish.yml
    • the same functionality as dotnet-core.yml
    • manual NuGet Publish by running this action
    • version auto increment
    • draft release creation, which should help bringing PRs summaries as you can see in the image below
    • once the draft release is published, everyone with notification set should be notified about the release by email automatically

image

- Changed the workflow name from ".NET Core" to ".NET Core - Build and Test".
- Updated `actions/checkout` action from version 2 to version 4.
- Updated `actions/setup-dotnet` action from version 1 to version 4.
- Commented out the `Publish` step, which included adding a NuGet source, packing projects, and pushing the packages to GitHub and NuGet.
- New: Add a new GitHub Actions workflow named ".NET Core - Publish NuGet Packages".
- New: Set environment variables `COMMON_SETTINGS_PATH` and `BASE_RUN_NUMBER`.
- New: Trigger the workflow manually using `workflow_dispatch`.
- New: Print the GitHub run number.
- New: Set a version number using the GitHub run number and `BASE_RUN_NUMBER`, and store it in the environment variable `VERSION`.
- New: Print the `VERSION` environment variable.
- All steps remains the same as original GitHub Action
- New: Create a GitHub release draft with the new version number and release notes.
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.

1 participant