diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 946d2642b55..b65888049fc 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -125,3 +125,26 @@ jobs: with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} + + deploy_CVMFS: + runs-on: "ubuntu-latest" + if: github.event_name != 'push' || github.repository == 'DIRACGrid/DIRAC' + steps: + - uses: conda-incubator/setup-miniconda@master + with: + miniforge-variant: Mambaforge + use-mamba: true + python-version: 3.11 + mamba-version: "*" + channels: conda-forge,defaults + channel-priority: true + activate-environment: deploy_cvmfs + - name: Deploy on CVMFS + if: steps.check-tag.outputs.create-release == 'true' + env: + CVMFS_PROXY_BASE64: ${{ secrets.CVMFS_PROXY_BASE64 }} + run: | + mamba install gct + echo "$CVMFS_PROXY_BASE64" | base64 --decode > cvmfs.proxy + export X509_USER_PROXY=cvmfs.proxy + gsissh -p 1975 -t cvmfs-upload01.gridpp.rl.ac.uk /home/diracsgm/cvmfs_repo/admin/sync_packages.sh