From c2c837c8de9283765ad0fd8e96048568a88eed13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B6rfelt?= Date: Thu, 25 Apr 2024 23:53:20 +0200 Subject: [PATCH] upload artifacts only if it's a release --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 090af71..aeb5188 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,8 @@ jobs: - name: Build executable with pyinstaller run: python -m PyInstaller joplin_custom_importer.spec - uses: actions/upload-artifact@v4 + # upload artifacts only if it's a release + if: ${{ startsWith(github.ref, 'refs/tags/v') }} with: name: joplin-custom-importer-${{ matrix.os }} path: ./dist/joplin_custom_importer*