-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update GitHub Actions #1
base: master
Are you sure you want to change the base?
Conversation
Build Commit: - Run when tests or Directory props are modified - Run tests after building - Can be ran manually Build PR: - Fix incorrect formatting on the PR title - Run when a PR is opened, pulls the base branch's commits, is reopened, marked as ready for review - Run when tests or Directory props are modified - Run tests after building Regenerate Image Files: - Renamed from "Regenerate Resource Files" to "Regenerate Image Files" - Added the write-all permission for committing changes Publish: - Runs on every branch instead of specifically master branch - Added the `/p:Version` CLI arg, which copies the release's tag name - Removed testing publish when project build files are modified, by request
why do we need generate-images |
@InFTord |
@@ -33,7 +26,7 @@ jobs: | |||
- name: Publish NuGet packages | |||
run: | | |||
mkdir build | |||
dotnet pack -c Release -o build | |||
dotnet pack -c Release -o build /p:Version=${{ github.event.release.tag_name }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't work for two reasons.
-o
is unsupported on solution level, that's what we use artifacts output for. no morebuild
folders.github.event.release.tag_name
will usually contain a precedingv
; and we might want to version different packages differently. imo the best way to handle this is to just not touch it at all and leave it up to the csproj files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-o
is very much supported on a solution level- ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- mb, i forgot that sdk 7.0.201 reenabled it; but we should still use artifacts output for the reasons listed on discord
run: dotnet build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(potentially for future reference)
ideally we want to pass the run number and hash here so that we can build assembly metadata from them if/when we add dev builds. not a priority right now though
Build Commit:
Build PR:
Regenerate Image Files:
Publish:
/p:Version
CLI arg, which copies the release's tag nameGenerate-Images.sh:
generate-assets.sh
togenerate-images.sh