mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 07:21:34 -04:00
Update buildAndDeploy.yml
'read release' test for version 3.15.7
This commit is contained in:
parent
70882b4e8b
commit
a1da9598bd
14
.github/workflows/buildAndDeploy.yml
vendored
14
.github/workflows/buildAndDeploy.yml
vendored
@ -68,6 +68,20 @@ jobs:
|
|||||||
./gradlew desktop:zipLinuxFilesForJar;
|
./gradlew desktop:zipLinuxFilesForJar;
|
||||||
mv desktop/build/libs/Unciv.jar deploy/Unciv.jar
|
mv desktop/build/libs/Unciv.jar deploy/Unciv.jar
|
||||||
|
|
||||||
|
- name: Read release.md and use it as a body of new release
|
||||||
|
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
||||||
|
id: read_release
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
r=$(cat path/to/release.md) # <--- Read release.md (Provide correct path as per your repo)
|
||||||
|
r=$(grep -Pzo --color '\\#{2}.3.15.7\([^\\#]*?\\#{2}\)') # grep to get only our release
|
||||||
|
echo "$r"
|
||||||
|
r="${r//'%'/'%25'}" # Multiline escape sequences for %
|
||||||
|
r="${r//$'\n'/'%0A'}" # Multiline escape sequences for '\n'
|
||||||
|
r="${r//$'\r'/'%0D'}" # Multiline escape sequences for '\r'
|
||||||
|
echo "::set-output name=RELEASE_BODY::$r" # <--- Set environment variable
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Upload binaries to release
|
- name: Upload binaries to release
|
||||||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user