mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
Update Release.yml
This commit is contained in:
13
.github/workflows/Release.yml
vendored
13
.github/workflows/Release.yml
vendored
@@ -16,14 +16,11 @@ jobs:
|
||||
- name: Release.txt
|
||||
id: read_release
|
||||
run: |
|
||||
$Release = (Get-Content -Path Release.txt -Encoding utf8 -Raw)
|
||||
$Release = $Release.replace("%", "%25")
|
||||
$Release = $Release.replace("*", "%2A")
|
||||
$Release = $Release.replace("`n", "%0A")
|
||||
$Release = $Release.replace("`r", "%0D")
|
||||
# https://en.wikipedia.org/wiki/Percent-encoding
|
||||
$Release = (Get-Content -Path Release.md -Encoding utf8 -Raw).replace("%", "%25").replace("*", "%2A").replace("`n", "%0A").replace("`r", "%0D")
|
||||
|
||||
echo "::set-output name=RELEASE_BODY::$Release"
|
||||
${{ steps.read_release.outputs.RELEASE_BODY }}
|
||||
#echo "::set-output name=RELEASE_BODY::$Release"
|
||||
echo "RELEASE_BODY=$Release" >> $env:GITHUB_ENV
|
||||
|
||||
- name: Uploading ReVanced.zip to release
|
||||
uses: svenstaro/upload-release-action@master
|
||||
@@ -31,7 +28,7 @@ jobs:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: Release.txt
|
||||
tag: ${{ github.ref }}
|
||||
body: ${{ steps.read_release.outputs.RELEASE_BODY }}
|
||||
body: ${{ env.RELEASE_BODY }}
|
||||
overwrite: true
|
||||
file_glob: true
|
||||
prerelease: $false
|
||||
|
||||
Reference in New Issue
Block a user