From d604d632f812c349286a2f20671a37451026d44b Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Mon, 20 Jun 2022 10:22:36 +0200 Subject: [PATCH] Update schema release --- .github/workflows/release.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f31ca4cc..5036dbc7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,11 +25,19 @@ jobs: make lottie.schema.json - name: Upload Schema - uses: svenstaro/upload-release-action@v2 + if: ${{ contains(github.ref, '/tags/') }} + uses: softprops/action-gh-release@v1 with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: docs/schema/lottie.schema.json - asset_name: lottie.schema.json - tag: ${{ github.ref }} + token: ${{ secrets.GITHUB_TOKEN }} + files: docs/schema/lottie.schema.json + tag_name: ${{ github.ref }} + overwrite: true + - + name: Upload Schema + if: ${{ !contains(github.ref, '/tags/') }} + uses: softprops/action-gh-release@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + files: docs/schema/lottie.schema.json + tag_name: latest overwrite: true -