mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-18 22:53:16 +00:00
Update ci script
This commit is contained in:
parent
c6490f5847
commit
8700191866
2 changed files with 9 additions and 8 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -96,16 +96,15 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
sparse-checkout: last_release_notes.md
|
||||||
- name: Download all workflow run artifacts
|
- name: Download all workflow run artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
merge-multiple: true
|
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
|
- uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: true
|
||||||
artifacts: "*.zip"
|
artifacts: "*.zip"
|
||||||
bodyFile: release_body.md
|
bodyFile: last_release_notes.md
|
||||||
|
|
|
@ -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")
|
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()
|
print()
|
||||||
notes_path = "/tmp/rnotes.md"
|
notes_path = "./last_release_notes.md"
|
||||||
with open(notes_path, "w") as f:
|
with open(notes_path, "w") as f:
|
||||||
print(notes.gen_md(), file=f)
|
print(notes.gen_md(), file=f)
|
||||||
|
|
||||||
|
@ -45,10 +45,12 @@ def main():
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
subprocess.run(["git", "pull"])
|
subprocess.run(["git", "pull"])
|
||||||
subprocess.run(["git", "commit", "-am", "Automated commit: "+tag])
|
|
||||||
|
|
||||||
notes_path = generate_notes(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", "tag", "-a", "-F", notes_path, tag ])
|
||||||
subprocess.check_call(["git", "push", "--follow-tags"])
|
subprocess.check_call(["git", "push", "--follow-tags"])
|
||||||
subprocess.check_call(["git", "push"])
|
subprocess.check_call(["git", "push"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue