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

Workflow: package and release on tag #8

Merged
merged 4 commits into from
Nov 5, 2021
Merged

Workflow: package and release on tag #8

merged 4 commits into from
Nov 5, 2021

Conversation

thekaveman
Copy link
Member

Overview

Closes #2

  • workflow runs on a tag of the form v*.*.* e.g. v1.2.3
  • workflow consists of two jobs: package and release

package

  • run the dotnet build process using a matrix strategy for different versions / runtime targets
  • generate and zip output for a given target
  • upload zip as GitHub Actions artifact

release

  • blocked until package finishes successfully
  • download all GitHub Actions artifacts (from all matrix builds)
  • make new GitHub Release, attaching all artifacts

Testing this Workflow

I forked the repository over at https://github.com/thekaveman/hashfields.

* workflow runs on a tag of the form v*.*.* e.g. v1.2.3
* workflow consists of two jobs: package then release

package:

* run the dotnet build process using a matrix strategy
* generate and zip output
* upload zip as GitHub Actions artifact

release:

* blocked until package finishes successfully
* download all GitHub Actions artifacts (from all matrix builds)
* make new GitHub Release, attaching all artifacts
refactor path into a reusable step output
@machikoyasuda
Copy link
Member

The matrix thing is so cool

image

Copy link
Member

@angela-tran angela-tran left a comment

Choose a reason for hiding this comment

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

Looks good!

distinct from the app version and the OS runtime
@thekaveman thekaveman merged commit 2852c50 into main Nov 5, 2021
@thekaveman thekaveman deleted the feat/release branch November 5, 2021 01:02
@thekaveman
Copy link
Member Author

The workflow ran successfully on the v0.0.1 tag!

https://github.com/cal-itp/hashfields/releases/tag/v0.0.1

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.

Package and publish on release
3 participants