-
Notifications
You must be signed in to change notification settings - Fork 1
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
Release process follow ups #220
Conversation
c68bcfa
to
601f06d
Compare
Codecov Report
@@ Coverage Diff @@
## main #220 +/- ##
==========================================
+ Coverage 96.98% 98.12% +1.13%
==========================================
Files 12 12
Lines 663 639 -24
==========================================
- Hits 643 627 -16
+ Misses 20 12 -8
Flags with carried forward coverage won't be shown. Click here to find out more. see 4 files with indirect coverage changes 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
.github/workflows/Pre_release.yml
Outdated
id: project_toml | ||
shell: julia --color=yes --project {0} | ||
env: | ||
LATEST_TAG: ${{ steps.latest_tag.outputs.tag }} | ||
run: | | ||
using Pkg.Types | ||
project = read_project("Project.toml") | ||
latest_tag = parse(VersionNumber, ENV["LATEST_TAG"]) | ||
tags = parse.(VersionNumber, split(readchomp(`git tag -l`), "\n")) |
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.
Just curious if you verified this? I thought maybe we'd have to do git fetch --tags
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.
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.
If we create a tag that isn't a version number this will break. We should do:
tags = parse.(VersionNumber, split(readchomp(`git tag -l`), "\n")) | |
tags = split(readchomp(`git tag -l`), "\n") |
and do a string comparison later.
Also, we can simplify this to:
tags = parse.(VersionNumber, split(readchomp(`git tag -l`), "\n")) | |
tags = readlines(`git tag -l`) |
b00fb32
to
1c216c1
Compare
a15ffc4
to
5a30daa
Compare
This reverts commit 88b36c4.
looking into using |
Do we need to use |
Well, I was exploring it as For instance: |
b41a60e
to
9fb8585
Compare
@@ -80,10 +82,9 @@ jobs: | |||
git tag $tag ${{ steps.commit.outputs.sha }} | |||
git push origin $tag | |||
- name: Publish Pre-Release | |||
uses: softprops/action-gh-release@v1 | |||
uses: ncipollo/release-action@v1 |
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.
switching to this action as it allows us to set the rlease as "latest release"
I think the reason the release notes are whack is because our tag is not targetting the https://github.com/orgs/community/discussions/5975#discussioncomment-1799743
|
I'll note I'm following along with ncipollo/release-action#198 to see if there's a workaround |
I've found https://github.com/mikepenz/release-changelog-builder-action and will look to generate the changelog from that |
20f8156
to
439b588
Compare
439b588
to
de45f66
Compare
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.
One last thing
.github/workflows/Pre_release.yml
Outdated
id: project_toml | ||
shell: julia --color=yes --project {0} | ||
env: | ||
LATEST_TAG: ${{ steps.latest_tag.outputs.tag }} | ||
run: | | ||
using Pkg.Types | ||
project = read_project("Project.toml") | ||
latest_tag = parse(VersionNumber, ENV["LATEST_TAG"]) | ||
tags = parse.(VersionNumber, split(readchomp(`git tag -l`), "\n")) |
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.
If we create a tag that isn't a version number this will break. We should do:
tags = parse.(VersionNumber, split(readchomp(`git tag -l`), "\n")) | |
tags = split(readchomp(`git tag -l`), "\n") |
and do a string comparison later.
Also, we can simplify this to:
tags = parse.(VersionNumber, split(readchomp(`git tag -l`), "\n")) | |
tags = readlines(`git tag -l`) |
f51d8a0
to
a8bf476
Compare
This knocks out some of items in #210 namely:
Not solved yet:
artifacts_CI
workflow after triggeringPre_release CI
usingworkflow_dispatch
(seems to ignore that it's a workflow_dispatch and doesn't trigger it)