backend icon indicating copy to clipboard operation
backend copied to clipboard

Update CD Workflow to archive previous releases

Open RichDom2185 opened this issue 1 year ago • 2 comments

Closes #941.

Changes:

  • Use github.ref_name instead of unnecessary rlespinasse/github-slug-action
  • Auto-generate release tags and titles based on the current time
  • Generate changelog from the last release from the same branch
  • Archive previous releases using the autogenerated tag name

RichDom2185 avatar Jul 13 '23 03:07 RichDom2185

Coverage Status

coverage: 95.295%. remained the same when pulling abe896a82688e66845315f319be85dd000e64bf7 on RichDom2185:archive-previous-releases into 18a71d366552ee36cdd58b9eff829a4bddc011c4 on source-academy:master.

coveralls avatar Jul 13 '23 03:07 coveralls

@YaleChen299 the issue now is:

  • The releases are tagged with the time the workflow was run, not latest-[branch_name]
  • While the latest-[branch_name] tag exists and points to the same commit, it does not point to the release,
  • So the uploaded asset can't be found when querying from latest-[branch_name]

RichDom2185 avatar Jul 13 '23 03:07 RichDom2185