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

Split GitHub workflows out into build and release #30

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Conversation

jwthomson
Copy link
Member

@jwthomson jwthomson commented Mar 15, 2024

The changes in this PR are based loosely on the changes made to enable similar functionality in the speedometer repo: https://github.com/CompositionalIT/Feliz-ReactSpeedometer

Copy link
Member

@mattgallagher92 mattgallagher92 left a comment

Choose a reason for hiding this comment

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

@jwthomson happy for this to be merged, but some things to consider.

name: Build

on:
push:
Copy link
Member

Choose a reason for hiding this comment

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

I assume that push doesn't include merges? Do we want to build on merge too?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can't see an alternative which would seem to include merges. I would have thought that a merge is just a merge commit, which is then pushed, and then the push would trigger this workflow. Or perhaps my understanding is lacking?

Copy link
Member

Choose a reason for hiding this comment

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

A merge wouldn't have to be pushed if it was done directly within the GitHub repo

Copy link
Member

Choose a reason for hiding this comment

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

This does trigger on merge to main.

- name: Restore dependencies
run: dotnet restore
working-directory: ./src

- name: Build
Copy link
Member

Choose a reason for hiding this comment

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

If we do run on every push/merge to master, can we reuse the artifact somehow rather than building from scratch?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea. Let's make this an investigation task for another day!

@jwthomson jwthomson merged commit 3127eec into main Mar 15, 2024
1 check passed
@jwthomson jwthomson deleted the github-releases branch March 15, 2024 17:01
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.

2 participants