backend
backend copied to clipboard
Update CD Workflow to archive previous releases
Closes #941.
Changes:
- Use
github.ref_name
instead of unnecessaryrlespinasse/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
coverage: 95.295%. remained the same when pulling abe896a82688e66845315f319be85dd000e64bf7 on RichDom2185:archive-previous-releases into 18a71d366552ee36cdd58b9eff829a4bddc011c4 on source-academy:master.
@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]