Skip to content

Commit

Permalink
ci: vue demo to staging
Browse files Browse the repository at this point in the history
  • Loading branch information
icaparros-at-wiris authored and carla-at-wiris committed Mar 11, 2024
1 parent 1cffd68 commit 1593102
Show file tree
Hide file tree
Showing 10 changed files with 266 additions and 147,225 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Checkout
uses: actions/checkout@v2
node-version: 18

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -124,7 +121,7 @@ jobs:
matrix:
branch: ${{ fromJson(needs.prepare.outputs.branches) }}
editor: ["ckeditor4", "ckeditor5", "froala", "generic", "tinymce5", "tinymce6", "viewer"]
framework: ["html", "angular", "react"]
framework: ["html", "angular", "react", "vue"]
exclude:
- framework: angular
editor: ckeditor4
Expand All @@ -138,14 +135,23 @@ jobs:
editor: viewer
- framework: react
editor: viewer
- framework: vue
editor: viewer
- framework: vue
editor: tinymce6
- framework: vue
editor: tinymce5
- framework: vue
editor: generic
- framework: vue
editor: froala
- framework: vue
editor: ckeditor4
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Checkout
uses: actions/checkout@v2
node-version: 18

- name: Create environment.prod.ts file
run: node scripts/createEnvFile.js
Expand All @@ -165,6 +171,7 @@ jobs:
CKEDITOR4_API_KEY: ${{ secrets.CKEDITOR4_API_KEY }}
FROALA_API_KEY: ${{ secrets.FROALA_API_KEY }}
REACT_APP_FROALA_API_KEY: ${{ secrets.FROALA_API_KEY }}
NODE_OPTIONS: "--openssl-legacy-provider"
run: |
npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }}
yarn
Expand Down Expand Up @@ -213,6 +220,8 @@ jobs:
react)
aws s3 cp demos/react/${{ matrix.editor }}/build s3://wiris-integrations-staging-html/${{ matrix.branch }}/react/${{ matrix.editor }} --recursive
;;
vue)
aws s3 cp demos/vue/${{ matrix.editor }}/dist s3://wiris-integrations-staging-html/${{ matrix.branch }}/vue/${{ matrix.editor }} --recursive
esac
invalidate-cache:
Expand Down
Loading

0 comments on commit 1593102

Please sign in to comment.