From 75d4f626f4a0c723b1eec4a740c028d11d85e01d Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Wed, 31 Aug 2022 23:51:57 +0300 Subject: [PATCH] Create Release.yml --- .github/workflows/Release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/Release.yml diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 0000000..2b1598c --- /dev/null +++ b/.github/workflows/Release.yml @@ -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