diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 068e454..cf1d376 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -2,6 +2,8 @@ name: Build CI # on: [push] on: push: + tags: + - "v*" branches: - master paths: @@ -63,10 +65,11 @@ jobs: - name: Save Artifacts uses: actions/upload-artifact@v3 with: - name: Prod-latest-x86_64.AppImage + name: Prod-${{ github.ref_type == "tag" && github.ref_name || "master" }}-x86_64.AppImage path: Prod-latest-x86_64.AppImage + - name: Create New Release uses: akkuman/gitea-release-action@v1 with: files: Prod-latest-x86_64.AppImage - prerelease: true + prerelease: ${{ github.ref_type == "tag" }}