Update deploy.yml
This commit is contained in:
1 parent
d368e5bb41
commit
3c2f3fb361
1 file changed
+25
-21
@@ -358,27 +358,6 @@ jobs:
|
||||
id: start-edgeone
|
||||
run: echo "start_time=$(date +%s)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Checkout code (for scripts)
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install coscmd
|
||||
run: pip install -U coscmd
|
||||
|
||||
- name: Configure coscmd
|
||||
env:
|
||||
COS_SECRET_ID: ${{ secrets.COS_SECRET_ID }}
|
||||
COS_SECRET_KEY: ${{ secrets.COS_SECRET_KEY }}
|
||||
COS_BUCKET: ${{ secrets.COS_BUCKET }}
|
||||
COS_REGION: ${{ secrets.COS_REGION }}
|
||||
run: coscmd config -a $COS_SECRET_ID -s $COS_SECRET_KEY -b $COS_BUCKET -r $COS_REGION
|
||||
|
||||
- name: Get build hash from COS (public URL)
|
||||
id: hash
|
||||
env:
|
||||
@@ -412,6 +391,31 @@ jobs:
|
||||
echo "deployed=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Checkout code (for scripts)
|
||||
if: steps.check.outputs.deployed == 'true'
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Setup Python
|
||||
if: steps.check.outputs.deployed == 'true'
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install coscmd
|
||||
if: steps.check.outputs.deployed == 'true'
|
||||
run: pip install -U coscmd
|
||||
|
||||
- name: Configure coscmd
|
||||
if: steps.check.outputs.deployed == 'true'
|
||||
env:
|
||||
COS_SECRET_ID: ${{ secrets.COS_SECRET_ID }}
|
||||
COS_SECRET_KEY: ${{ secrets.COS_SECRET_KEY }}
|
||||
COS_BUCKET: ${{ secrets.COS_BUCKET }}
|
||||
COS_REGION: ${{ secrets.COS_REGION }}
|
||||
run: coscmd config -a $COS_SECRET_ID -s $COS_SECRET_KEY -b $COS_BUCKET -r $COS_REGION
|
||||
|
||||
- name: Download files from COS
|
||||
if: steps.check.outputs.deployed == 'true'
|
||||
id: download-files
|
||||
|
||||
Reference in new issue
Block a user