Skip to content

Source code synchronization #4

Source code synchronization

Source code synchronization #4

Workflow file for this run

name: source code sync to bos
run-name: Source code synchronization
on: [push]
jobs:
upload_bos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 20
- uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
activate-environment: ""
- name: upload-source-code
env:
AK: ${{ secrets.BOS_AK }}
SK: ${{ secrets.BOS_SK }}
run: |
ls -l
pwd
cd ../
tar -zcf PaddleTest_workflow.tar.gz ./PaddleTest
python -m pip install bce-python-sdk==0.8.74
BRANCH_NAME=${GITHUB_REF#refs/heads/}
echo "Branch Name: $BRANCH_NAME"
python ./PaddleTest/tools/bos_upload.py PaddleTest.tar.gz xly-devops/PaddleTest