From 094c018eda5857736b8be874188dd802eadf75f5 Mon Sep 17 00:00:00 2001 From: slhmy <31381093+slhmy@users.noreply.github.com> Date: Fri, 29 Sep 2023 10:05:57 +0800 Subject: [PATCH] Update release-build.yml --- .github/workflows/release-build.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index db0b136fd..5b905bba3 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -25,20 +25,6 @@ jobs: - name: Build run: npm run build - - name: Read Release Info - id: read_release_info - uses: actions/github-script@v4 - with: - script: | - const fs = require('fs'); - const yaml = require('js-yaml'); - - const releaseInfo = yaml.load(fs.readFileSync('RELEASE_INFO.yml', 'utf8')); - - return releaseInfo; - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Create Release if: github.event_name == 'push' id: create_release @@ -46,9 +32,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.read_release_info.outputs.tag_name }} - release_name: ${{ steps.read_release_info.outputs.release_name }} - body: ${{ steps.read_release_info.outputs.description }} + tag_name: action-build + release_name: Action Build - name: Upload Release Asset if: github.event_name == 'push'