Source code synchronization #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |