mirror of
https://github.com/JDM170/ReVanced_Builder
synced 2025-11-29 14:41:46 +07:00
Create Release.yml
This commit is contained in:
32
.github/workflows/Release.yml
vendored
Normal file
32
.github/workflows/Release.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
patch:
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
|
||||
- name: Release.txt
|
||||
id: read_release
|
||||
run: |
|
||||
$Release = (Get-Content -Path Release.txt -Encoding utf8 -Raw).replace("%", "[char]0x25").replace("*", "[char]0x002A").replace("\n", "[char]0x0A").replace("\r", "[char]0x0D")
|
||||
$Release
|
||||
echo "::set-output name=RELEASE_BODY::$Release"
|
||||
${{ steps.read_release.outputs.RELEASE_BODY }}
|
||||
|
||||
- name: Uploading ReVanced.zip to release
|
||||
uses: svenstaro/upload-release-action@master
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tag: ${{ github.ref }}
|
||||
body: ${{ steps.read_release.outputs.RELEASE_BODY }}
|
||||
overwrite: true
|
||||
file_glob: true
|
||||
prerelease: $false
|
||||
Reference in New Issue
Block a user