Fix daily upload for Rainforest builds (#2035)
This commit is contained in:
@@ -456,6 +456,31 @@ jobs:
|
|||||||
from: ./aws-s3-dist/
|
from: ./aws-s3-dist/
|
||||||
to: s3://releases.mattermost.com/desktop/
|
to: s3://releases.mattermost.com/desktop/
|
||||||
arguments: --acl public-read --cache-control "no-cache" --recursive
|
arguments: --acl public-read --cache-control "no-cache" --recursive
|
||||||
|
|
||||||
|
upload_to_s3_daily:
|
||||||
|
executor: aws
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: ./build
|
||||||
|
- run:
|
||||||
|
name: "install renaming utility"
|
||||||
|
command: |
|
||||||
|
sudo apt-get install rename
|
||||||
|
- run:
|
||||||
|
name: "Normalize folder names"
|
||||||
|
command: |
|
||||||
|
mv ./build/macos-release ./build/macos && mv ./build/win-release ./build/win
|
||||||
|
- run:
|
||||||
|
name: "Rename to daily for consistency"
|
||||||
|
command: |
|
||||||
|
rename 's/\d+\.\d+\.\d+\-nightly\.\d+\/mattermost(.+)\d+\.\d+\.\d+\-nightly\.\d+/mattermost$1daily-develop/' ./build/macos/$(jq -r .version package.json)/*
|
||||||
|
rename 's/\d+\.\d+\.\d+\-nightly\.\d+\/mattermost(.+)\d+\.\d+\.\d+\-nightly\.\d+/mattermost$1daily-develop/' ./build/linux/$(jq -r .version package.json)/*
|
||||||
|
rename 's/\d+\.\d+\.\d+\-nightly\.\d+\/mattermost(.+)\d+\.\d+\.\d+\-nightly\.\d+/mattermost$1daily-develop/' ./build/win/$(jq -r .version package.json)/*
|
||||||
|
- aws-s3/copy:
|
||||||
|
from: ./build/
|
||||||
|
to: s3://mattermost-desktop-daily-builds/
|
||||||
|
arguments: --acl public-read --cache-control "no-cache" --recursive
|
||||||
|
|
||||||
upload_to_github:
|
upload_to_github:
|
||||||
executor: github
|
executor: github
|
||||||
@@ -664,6 +689,12 @@ workflows:
|
|||||||
- build-linux
|
- build-linux
|
||||||
- msi_installer
|
- msi_installer
|
||||||
- mac_installer
|
- mac_installer
|
||||||
|
- upload_to_s3_daily:
|
||||||
|
context: mattermost-desktop-daily-s3
|
||||||
|
requires:
|
||||||
|
- build-linux
|
||||||
|
- build-win-no-installer
|
||||||
|
- mac_installer
|
||||||
- share_to_channel:
|
- share_to_channel:
|
||||||
context: desktop_browserview
|
context: desktop_browserview
|
||||||
requires:
|
requires:
|
||||||
|
Reference in New Issue
Block a user