diff --git a/.gitea/workflows/build_and_test.yml b/.gitea/workflows/build_and_test.yml index 744d1705..218b300a 100644 --- a/.gitea/workflows/build_and_test.yml +++ b/.gitea/workflows/build_and_test.yml @@ -12,6 +12,7 @@ on: jobs: build-rpm: name: build:rpm (${{ matrix.distro }}) + if: github.ref_type == 'tag' runs-on: ${{ matrix.runner }} strategy: fail-fast: false @@ -144,12 +145,15 @@ jobs: # if: github.ref_type == 'tag' steps: - uses: actions/checkout@v4 + with: + lfs: true + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} - name: Create release env: GITEA_TOKEN: ${{ secrets.PIP_REPOSITORY_API_TOKEN }} shell: bash run: | - git lfs pull python3 gitea_create_release.py documentation: name: Build documentation @@ -180,6 +184,7 @@ jobs: unit-tests: name: Unit tests runs-on: jfjoch_rocky8 + if: github.ref_type == 'tag' container: image: gitea.psi.ch/leonarski_f/jfjoch_rocky8:2509 options: --gpus all