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

Update GitHub Actions #1

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

Conversation

OoLunar
Copy link
Member

@OoLunar OoLunar commented Aug 25, 2023

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

Generate-Images.sh:

  • Rename from generate-assets.sh to generate-images.sh
  • Update image regeneration script to better support transparent images

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
@OoLunar OoLunar added the enhancement New feature or request label Aug 25, 2023
@InFTord
Copy link
Member

InFTord commented Aug 25, 2023

why do we need generate-images

@OoLunar
Copy link
Member Author

OoLunar commented Aug 25, 2023

why do we need generate-images

@InFTord generate-images.sh is a convenience script, because not everyone can easily convert a svg to a png or ico file. Whenever logo.svg is updated, so are the others. It's not needed, but it is helpful to have when other websites (documentation) reference these resource files.

@@ -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 }}
Copy link
Member

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.

  1. -o is unsupported on solution level, that's what we use artifacts output for. no more build folders.
  2. github.event.release.tag_name will usually contain a preceding v; 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

Copy link
Member Author

Choose a reason for hiding this comment

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

  1. -o is very much supported on a solution level
  2. ok

Copy link
Member

Choose a reason for hiding this comment

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

  1. 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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants