Update release-macos.yml
This commit is contained in:
parent
aff8586d37
commit
df9e7b035a
1 changed files with 5 additions and 7 deletions
12
.github/workflows/release-macos.yml
vendored
12
.github/workflows/release-macos.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue