Update deploy.yml
This commit is contained in:
1 parent
8db5e417a8
commit
7b126b58e3
1 file changed
+25
-21
@@ -358,27 +358,6 @@ jobs:
|
|||||||
id: start-edgeone
|
id: start-edgeone
|
||||||
run: echo "start_time=$(date +%s)" >> $GITHUB_OUTPUT
|
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)
|
- name: Get build hash from COS (public URL)
|
||||||
id: hash
|
id: hash
|
||||||
env:
|
env:
|
||||||
@@ -412,6 +391,31 @@ jobs:
|
|||||||
echo "deployed=false" >> $GITHUB_OUTPUT
|
echo "deployed=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
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
|
- name: Download files from COS
|
||||||
if: steps.check.outputs.deployed == 'true'
|
if: steps.check.outputs.deployed == 'true'
|
||||||
id: download-files
|
id: download-files
|
||||||
|
|||||||
Reference in new issue
Block a user