Update Build.yaml

This commit is contained in:
Dmitry Nefedov
2022-08-31 23:35:12 +03:00
committed by GitHub
parent 814937eabe
commit e281934efe

View File

@@ -49,7 +49,7 @@ jobs:
} }
Invoke-RestMethod @Parameters Invoke-RestMethod @Parameters
(Get-Content -Path Release.md -Encoding utf8).replace("CLITag", $Tag) | Set-Content -Path Release.md -Encoding utf8 -Force (Get-Content -Path Release.txt -Encoding utf8).replace("CLITag", $Tag) | Set-Content -Path Release.txt -Encoding utf8 -Force
- name: Downloading ReVanced Patches - name: Downloading ReVanced Patches
run: | run: |
@@ -69,7 +69,7 @@ jobs:
} }
Invoke-RestMethod @Parameters Invoke-RestMethod @Parameters
(Get-Content -Path Release.md -Encoding utf8).replace("PatchesTag", $Tag) | Set-Content -Path Release.md -Encoding utf8 -Force (Get-Content -Path Release.txt -Encoding utf8).replace("PatchesTag", $Tag) | Set-Content -Path Release.txt -Encoding utf8 -Force
- name: Downloading ReVanced Integrations - name: Downloading ReVanced Integrations
run: | run: |
@@ -88,7 +88,7 @@ jobs:
} }
Invoke-RestMethod @Parameters Invoke-RestMethod @Parameters
(Get-Content -Path Release.md -Encoding utf8).replace("IntegrationsTag", $Tag) | Set-Content -Path Release.md -Encoding utf8 -Force (Get-Content -Path Release.txt -Encoding utf8).replace("IntegrationsTag", $Tag) | Set-Content -Path Release.txt -Encoding utf8 -Force
- name: Downloading GmsCore - name: Downloading GmsCore
run: | run: |
@@ -107,7 +107,7 @@ jobs:
} }
Invoke-RestMethod @Parameters Invoke-RestMethod @Parameters
(Get-Content -Path Release.md -Encoding utf8).replace("GmsCoreTag", $Tag) | Set-Content -Path Release.md -Encoding utf8 -Force (Get-Content -Path Release.txt -Encoding utf8).replace("GmsCoreTag", $Tag) | Set-Content -Path Release.txt -Encoding utf8 -Force
- name: Downloading latest Zulu JDK - name: Downloading latest Zulu JDK
run: | run: |
@@ -127,7 +127,7 @@ jobs:
} }
Invoke-RestMethod @Parameters Invoke-RestMethod @Parameters
(Get-Content -Path Release.md -Encoding utf8).replace("ZuluTag", $Tag) | Set-Content -Path Release.md -Encoding utf8 -Force (Get-Content -Path Release.txt -Encoding utf8).replace("ZuluTag", $Tag) | Set-Content -Path Release.txt -Encoding utf8 -Force
- name: Expanding Zulu JDK - name: Expanding Zulu JDK
run: | run: |
@@ -172,12 +172,13 @@ jobs:
} }
Compress-Archive @Parameters Compress-Archive @Parameters
- name: Release.md - name: Release.txt
id: read_release id: read_release
run: | run: |
$Release = (Get-Content -Path Release.md -Encoding utf8 -Raw).replace("%", "[char]0x25").replace("\n", "[char]0x0A").replace("\r", "[char]0x0D") $Release = (Get-Content -Path Release.txt -Encoding utf8 -Raw).replace("%", "[char]0x25").replace("*", "[char]0x002A").replace("\n", "[char]0x0A").replace("\r", "[char]0x0D")
$Release $Release
echo "Release_Body=$Release" >> $env:GITHUB_ENV echo "::set-output name=RELEASE_BODY::$Release"
${{ steps.read_release.outputs.RELEASE_BODY }}
- name: Uploading ReVanced.zip to release - name: Uploading ReVanced.zip to release
uses: svenstaro/upload-release-action@master uses: svenstaro/upload-release-action@master
@@ -185,7 +186,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ReVanced.zip file: ReVanced.zip
tag: ${{ github.ref }} tag: ${{ github.ref }}
body: ${{ env.Release_Body }} body: ${{ steps.read_release.outputs.RELEASE_BODY }}
overwrite: true overwrite: true
file_glob: true file_glob: true
prerelease: $false prerelease: $false