From 6bec0c133b2f0db07d1fd70f475faed0d0f9b98e Mon Sep 17 00:00:00 2001 From: Bejofo <32919220+Bejofo@users.noreply.github.com> Date: Mon, 1 Nov 2021 13:30:46 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86c0b3c920745..abc2cf0efb827 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,30 +53,24 @@ jobs: These are the outputs for the experimental build of commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) draft: false prerelease: true - changelogs: - needs: release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: setup python + - name: Install python uses: actions/setup-python@v2 with: python-version: 3.8 #install the python needed - - name: Install dependcies + - name: Install python depednecies run: | pip install requests - - name: Generate Changelogs # run the run.py to get the latest data + - name: Generate Changelogs run: | python tools/changelog.py >> changelogs.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload changelogs - id: upload-changelogs + - name: Upload Changelogs uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ needs.release.outputs.upload_url }} + upload_url: ${{steps.create_release.outputs.upload_url}} asset_path: changelogs.md asset_name: changelogs.md asset_content_type: text/plain