-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: test folder for cdn * ci: create separate action for test * Apply suggestions from code review --------- Co-authored-by: Taylor Jones <[email protected]>
- Loading branch information
1 parent
4be0cb7
commit d5735a0
Showing
2 changed files
with
675 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Publish test CDN artifacts (versioned) to S3 | ||
run-name: Publish test CDN artifacts - versioned by @${{ github.actor }} | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: deploy-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish-cdn: | ||
if: | | ||
github.repository == 'IBM/plex' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
fetch-depth: '0' | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 #v4.0.4 | ||
with: | ||
node-version: '20.x' | ||
cache: 'yarn' | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Build cdn folder | ||
run: yarn build:cdn | ||
- uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83 #v0.5.1 | ||
with: | ||
args: --acl public-read --follow-symlinks | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.COMMON_COS_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.COMMON_COS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.COMMON_COS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: ${{ secrets.COMMON_COS_REGION }} | ||
AWS_S3_ENDPOINT: https://${{ secrets.COMMON_COS_ENDPOINT }} | ||
SOURCE_DIR: 'cdn' | ||
DEST_DIR: '/common/carbon/plex-test' | ||
- uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83 #v0.5.1 | ||
with: | ||
args: --acl public-read --follow-symlinks | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.COMMON_COS_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.COMMON_COS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.COMMON_COS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: ${{ secrets.COMMON_COS_REGION }} | ||
AWS_S3_ENDPOINT: https://${{ secrets.COMMON_COS_ENDPOINT }} | ||
SOURCE_DIR: 'cdn' | ||
DEST_DIR: '/common/carbon-for-ibm-dotcom/plex-test' |
Oops, something went wrong.