Update ci script

This commit is contained in:
IQuant 2024-11-28 20:46:46 +03:00
parent c6490f5847
commit 8700191866
2 changed files with 9 additions and 8 deletions

View file

@ -96,16 +96,15 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: last_release_notes.md
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Get tag message
run: git tag -l --format='%(contents)' $(git describe --tags) > release_body.md
- name: Print release body
run: cat release_body.md
- uses: ncipollo/release-action@v1
with:
draft: true
artifacts: "*.zip"
bodyFile: release_body.md
bodyFile: last_release_notes.md

View file

@ -30,7 +30,7 @@ It should be detected automatically as long as you use steam version of the game
notes.p("There is a button in bottom-left corner on noita-proxy's main screen that allows to auto-update to a new version when one is available")
print()
notes_path = "/tmp/rnotes.md"
notes_path = "./last_release_notes.md"
with open(notes_path, "w") as f:
print(notes.gen_md(), file=f)
@ -45,9 +45,11 @@ def main():
exit(1)
subprocess.run(["git", "pull"])
subprocess.run(["git", "commit", "-am", "Automated commit: "+tag])
notes_path = generate_notes(tag)
subprocess.run(["git", "add", "-A"])
subprocess.run(["git", "commit", "-am", "Automated commit: "+tag])
subprocess.check_call(["git", "tag", "-a", "-F", notes_path, tag ])
subprocess.check_call(["git", "push", "--follow-tags"])