From f32bbf3df9cedf660ee92b7b39756cb3f3e692c2 Mon Sep 17 00:00:00 2001 From: Gil Megidish Date: Sat, 20 Feb 2021 22:58:42 +0200 Subject: [PATCH] Fixed versioning --- .github/workflows/android-studio-plugin.yml | 22 +++++---------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/android-studio-plugin.yml b/.github/workflows/android-studio-plugin.yml index cbd9709..c5eb281 100644 --- a/.github/workflows/android-studio-plugin.yml +++ b/.github/workflows/android-studio-plugin.yml @@ -22,23 +22,11 @@ jobs: PLUGIN_VERSION="$(echo $GITHUB_REF | sed 's,refs/tags/,,g')" sed -i -- "s/{{PLUGIN_VERSION}}/$PLUGIN_VERSION/g" META-INF/plugin.xml ant -v all - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Version ${{ github.ref }} - draft: false - prerelease: false - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: svenstaro/upload-release-action@v2 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: TestFairyAndroidStudioPlugin.zip + repo_token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref }} + file: TestFairyAndroidStudioPlugin.zip asset_name: testfairy-intellij-${{ github.ref }}-bin.zip - asset_content_type: application/zip +