feat: enhance github action

This commit is contained in:
samuele-cozzi 2023-03-04 14:56:01 +01:00 committed by GitHub
parent a7f1276365
commit 298ec00a87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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