Update build-linux.yml
update by vincentzou
This commit is contained in:
parent
b8cf10f4cb
commit
352a9e81bb
1 changed files with 1 additions and 18 deletions
19
.github/workflows/build-linux.yml
vendored
19
.github/workflows/build-linux.yml
vendored
|
|
@ -16,21 +16,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Install Coscmd
|
- name: Write Demo File
|
||||||
run: |
|
run: |
|
||||||
apt-get install -y python3-venv
|
|
||||||
python3 -m venv /python3/venv
|
|
||||||
/python3/venv/bin/python -m pip install coscmd
|
|
||||||
/python3/venv/bin/coscmd -v
|
|
||||||
|
|
||||||
- name: Configure COS For Silicon Valley
|
|
||||||
env:
|
|
||||||
SECRET_ID: ${{ secrets.COS_ID }}
|
|
||||||
SECRET_KEY: ${{ secrets.COS_KEY }}
|
|
||||||
BUCKET: release-sv-1252011659
|
|
||||||
REGION: na-siliconvalley
|
|
||||||
run: |
|
|
||||||
/python3/venv/bin/coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
|
||||||
echo "hello world" > /data/hello.txt
|
echo "hello world" > /data/hello.txt
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
@ -45,7 +32,3 @@ jobs:
|
||||||
name: yao-linux
|
name: yao-linux
|
||||||
path: |
|
path: |
|
||||||
/data/*
|
/data/*
|
||||||
|
|
||||||
- name: Push To Silicon Valley
|
|
||||||
run: |
|
|
||||||
for file in /data/*; do /python3/venv/bin/coscmd upload $file /archives/; done;
|
|
||||||
Loading…
Add table
Reference in a new issue