Skip to content

Commit 107c968

Browse files
committed
[ci] Publish newly created binaries
1 parent 859c7ff commit 107c968

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/root-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,3 +615,34 @@ jobs:
615615
with:
616616
name: Event File
617617
path: ${{ github.event_path }}
618+
619+
publish_binaries:
620+
# Publish the binary tarballs to the website
621+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.binaries}}
622+
name: "Publish binaries on the web"
623+
needs: [build-linux, build-windows, build-macos]
624+
runs-on: ubuntu-latest
625+
steps:
626+
- name: Download All Artifacts
627+
uses: actions/download-artifact@v8
628+
- name: Install Kerberos utilities
629+
run: sudo apt-get install -y krb5-user
630+
- name: Install XRootD client
631+
run: sudo apt-get -y install xrootd-client
632+
- name: Copy Binaries to EOS
633+
env:
634+
RWEBEOS_KT: ${{ secrets.RWEBEOS_KT }}
635+
KT_FILE_NAME: /tmp/decoded.keytab
636+
EOS_PATH: /eos/project/r/root-eos/website/download
637+
EOS_ENDPOINT: root://eosproject-r.cern.ch
638+
KRB5CCNAME: /tmp/krb5cc
639+
working-directory: ${{ env.WORKDIR }}
640+
run: |
641+
echo +++ Content
642+
ls
643+
echo +++ Retrieving the secret
644+
echo ${RWEBEOS_KT} | base64 -d > ${KT_FILE_NAME}
645+
echo +++ Creating the token
646+
kinit -p ${{ secrets.KRB5USER }}@${{ secrets.KRB5REALM }} -kt ${KT_FILE_NAME}
647+
echo +++ Running the copy
648+
xrdcp -rf Binaries*/root_v* ${EOS_ENDPOINT}/${EOS_PATH}/

0 commit comments

Comments
 (0)