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]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- "share/const.go"
|
- "share/const.go"
|
||||||
|
env:
|
||||||
|
COSCMD: /Library/Frameworks/Python.framework/Versions/3.11/bin/coscmd
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
|
@ -22,14 +24,10 @@ jobs:
|
||||||
sudo /Library/Frameworks/Python.framework/Versions/3.11/bin/python -m pip install --upgrade pip
|
sudo /Library/Frameworks/Python.framework/Versions/3.11/bin/python -m pip install --upgrade pip
|
||||||
sudo pip3 install coscmd
|
sudo pip3 install coscmd
|
||||||
echo "/Library/Frameworks/Python.framework/Versions/3.11/bin" >> $GITHUB_PATH
|
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
|
- name: coscmd test
|
||||||
run: |
|
run: |
|
||||||
echo $PATH
|
$COSCMD -v
|
||||||
/Library/Frameworks/Python.framework/Versions/3.11/bin/coscmd -v
|
|
||||||
/usr/local/bin/coscmd -v
|
|
||||||
coscmd -v
|
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
run: npm install -g pnpm
|
run: npm install -g pnpm
|
||||||
|
|
@ -116,11 +114,11 @@ jobs:
|
||||||
BUCKET: release-sv-1252011659
|
BUCKET: release-sv-1252011659
|
||||||
REGION: na-siliconvalley
|
REGION: na-siliconvalley
|
||||||
run: |
|
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
|
- name: Push To Silicon Valley
|
||||||
run: |
|
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
|
- name: Archive production artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue