Skip to content

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
@thekaveman thekaveman added this to the November 2021 milestone Nov 3, 2021
@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

4 participants