Skip to content

Commit

Permalink
Merge branch 'IBM:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
yanone authored Nov 7, 2024
2 parents fcccd5f + 9f898f4 commit 8f8abed
Show file tree
Hide file tree
Showing 56 changed files with 150,569 additions and 169 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/publish-cdn-test.yml
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'
50 changes: 50 additions & 0 deletions .github/workflows/publish-cdn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish CDN artifacts (versioned) to S3
run-name: Publish 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@v4
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@master
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'
- uses: jakejarvis/s3-sync-action@master
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'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ zip
.parcel-cache
.idea
dist
cdn
/deploy-preview
/public
/tmp
.env
/.nx
.vscode

# Source files
# https://github.com/IBM/plex/issues/554
Expand Down
Loading

0 comments on commit 8f8abed

Please sign in to comment.