From 298ec00a875379061ea45f91803e94239fe03124 Mon Sep 17 00:00:00 2001 From: samuele-cozzi Date: Sat, 4 Mar 2023 14:56:01 +0100 Subject: [PATCH] feat: enhance github action --- .github/workflows/release-please.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 6cacbf0..c62a5fb 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -24,7 +24,7 @@ jobs: tag_name: ${{ steps.release.outputs.tag_name }} upload_url: ${{ steps.release.outputs.upload_url }} - update-version: + release-plugin: needs: release-please runs-on: ubuntu-latest if: ${{ needs.release-please.outputs.release_created }} @@ -59,12 +59,7 @@ jobs: with: github_token: ${{secrets.GITHUB_TOKEN}} branch: main - - build-plugin: - needs: update-version - runs-on: ubuntu-latest - if: ${{ needs.release-please.outputs.release_created }} - steps: + - name: Build id: build run: | @@ -75,12 +70,7 @@ jobs: zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }} ls echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)" - - release-plugin: - needs: build-plugin - runs-on: ubuntu-latest - if: ${{ needs.release-please.outputs.release_created }} - steps: + - name: Upload zip file id: upload-zip uses: actions/upload-release-asset@v1