Update release-macos.yml

This commit is contained in:
Max 2022-11-10 13:47:18 +08:00 committed by GitHub
parent aff8586d37
commit df9e7b035a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,8 @@ on:
branches: [main]
paths:
- "share/const.go"
env:
COSCMD: /Library/Frameworks/Python.framework/Versions/3.11/bin/coscmd
jobs:
release:
@ -22,14 +24,10 @@ jobs:
sudo /Library/Frameworks/Python.framework/Versions/3.11/bin/python -m pip install --upgrade pip
sudo pip3 install coscmd
echo "/Library/Frameworks/Python.framework/Versions/3.11/bin" >> $GITHUB_PATH
sudo ln -s /Library/Frameworks/Python.framework/Versions/3.11/bin/coscmd /usr/local/bin/coscmd
- name: coscmd test
run: |
echo $PATH
/Library/Frameworks/Python.framework/Versions/3.11/bin/coscmd -v
/usr/local/bin/coscmd -v
coscmd -v
$COSCMD -v
- name: Install pnpm
run: npm install -g pnpm
@ -116,11 +114,11 @@ jobs:
BUCKET: release-sv-1252011659
REGION: na-siliconvalley
run: |
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
$COSCMD config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
- name: Push To Silicon Valley
run: |
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
for file in ./dist/release/*; do $COSCMD upload $file /archives/; done;
- name: Archive production artifacts
uses: actions/upload-artifact@v3