Cloudops 165 (#3661)
* Upload artifacts to R2 after we do S3. * Added beta check line to R2 upload
This commit is contained in:
parent
162db0b600
commit
9ca877a7be
|
@ -944,7 +944,11 @@ jobs:
|
||||||
SECRETS: |
|
SECRETS: |
|
||||||
aws-electron-access-id,
|
aws-electron-access-id,
|
||||||
aws-electron-access-key,
|
aws-electron-access-key,
|
||||||
aws-electron-bucket-name
|
aws-electron-bucket-name,
|
||||||
|
r2-electron-access-id,
|
||||||
|
r2-electron-access-key,
|
||||||
|
r2-electron-bucket-name,
|
||||||
|
cf-prod-account
|
||||||
run: |
|
run: |
|
||||||
for i in ${SECRETS//,/ }
|
for i in ${SECRETS//,/ }
|
||||||
do
|
do
|
||||||
|
@ -977,6 +981,20 @@ jobs:
|
||||||
--recursive \
|
--recursive \
|
||||||
--quiet
|
--quiet
|
||||||
|
|
||||||
|
- name: Publish artifacts to R2
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ steps.retrieve-secrets.outputs.r2-electron-access-id }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ steps.retrieve-secrets.outputs.r2-electron-access-key }}
|
||||||
|
AWS_DEFAULT_REGION: 'us-east-1'
|
||||||
|
AWS_S3_BUCKET_NAME: ${{ steps.retrieve-secrets.outputs.r2-electron-bucket-name }}
|
||||||
|
CF_ACCOUNT: ${{ steps.retrieve-secrets.outputs.cf-prod-account }}
|
||||||
|
working-directory: apps/desktop/artifacts
|
||||||
|
run: |
|
||||||
|
aws s3 cp ./ $AWS_S3_BUCKET_NAME/desktop/ \
|
||||||
|
--recursive \
|
||||||
|
--quiet \
|
||||||
|
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
||||||
|
|
||||||
- name: Update deployment status to Success
|
- name: Update deployment status to Success
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
uses: chrnorm/deployment-status@07b3930847f65e71c9c6802ff5a402f6dfb46b86
|
||||||
|
|
|
@ -98,7 +98,11 @@ jobs:
|
||||||
SECRETS: |
|
SECRETS: |
|
||||||
aws-electron-access-id,
|
aws-electron-access-id,
|
||||||
aws-electron-access-key,
|
aws-electron-access-key,
|
||||||
aws-electron-bucket-name
|
aws-electron-bucket-name,
|
||||||
|
r2-electron-access-id,
|
||||||
|
r2-electron-access-key,
|
||||||
|
r2-electron-bucket-name,
|
||||||
|
cf-prod-account
|
||||||
run: |
|
run: |
|
||||||
for i in ${SECRETS//,/ }
|
for i in ${SECRETS//,/ }
|
||||||
do
|
do
|
||||||
|
@ -145,6 +149,21 @@ jobs:
|
||||||
--recursive \
|
--recursive \
|
||||||
--quiet
|
--quiet
|
||||||
|
|
||||||
|
- name: Publish artifacts to R2
|
||||||
|
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ steps.retrieve-secrets.outputs.r2-electron-access-id }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ steps.retrieve-secrets.outputs.r2-electron-access-key }}
|
||||||
|
AWS_DEFAULT_REGION: 'us-east-1'
|
||||||
|
AWS_S3_BUCKET_NAME: ${{ steps.retrieve-secrets.outputs.r2-electron-bucket-name }}
|
||||||
|
CF_ACCOUNT: ${{ steps.retrieve-secrets.outputs.cf-prod-account }}
|
||||||
|
working-directory: apps/desktop/artifacts
|
||||||
|
run: |
|
||||||
|
aws s3 cp ./ $AWS_S3_BUCKET_NAME/desktop/ \
|
||||||
|
--recursive \
|
||||||
|
--quiet \
|
||||||
|
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: ncipollo/release-action@95215a3cb6e6a1908b3c44e00b4fdb15548b1e09 # v2.8.5
|
uses: ncipollo/release-action@95215a3cb6e6a1908b3c44e00b4fdb15548b1e09 # v2.8.5
|
||||||
if: ${{ steps.release-channel.outputs.channel == 'latest' && github.event.inputs.release_type != 'Dry Run' }}
|
if: ${{ steps.release-channel.outputs.channel == 'latest' && github.event.inputs.release_type != 'Dry Run' }}
|
||||||
|
|
Loading…
Reference in New Issue