Skip to content

DOC-1901: Remove RTC from TinyMCE 7.0 Documentation project. (#3096) #25

DOC-1901: Remove RTC from TinyMCE 7.0 Documentation project. (#3096)

DOC-1901: Remove RTC from TinyMCE 7.0 Documentation project. (#3096) #25

Workflow file for this run

name: Staging > Tiny 7 Docs
on:
workflow_dispatch:
push:
paths:
- '**'
branches:
- 'staging/docs-7'
jobs:
build:
name: Build Docs and Deploy
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [21]
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v2
with:
cache: 'yarn'
node-version: ${{ matrix.node-version }}
- name: (Staging - Docs 7) Install dependencies
run: yarn install
- name: (Staging - Docs 7) Build API References
run: yarn build
- name: (Staging - Docs 7) Build Website
run: yarn generate-site ./antora-playbook-staging.yml
- name: (Staging - Docs 7) Rename sitemap.xml
shell: bash
run: |
mv ./build/site/sitemap.xml ./build/site/antora-sitemap.xml
- name: (deploy) Upload website to S3
run: aws s3 sync --acl=public-read --delete ./build/site s3://tiny-cloud-antora-docs-staging/docs --exclude 'tinymce/*' --include 'tinymce/latest/*' --include 'tinymce/7/*'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
- name: (deploy) Invalidate Cache
run: aws cloudfront create-invalidation --distribution-id E7DUUPEI08HNW --paths "/docs/*"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true