-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/siemens/ix into fix/focus-h…
…andling
- Loading branch information
Showing
448 changed files
with
4,868 additions
and
3,593 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
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
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
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
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
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,62 @@ | ||
name: Deploy to DEV GitHub Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
confirm_deployment: | ||
description: 'Please confirm DEV deployment' | ||
required: true | ||
type: boolean | ||
repo_url: | ||
description: 'Documentation repository' | ||
required: true | ||
default: danielleroux/docs-instance | ||
type: string | ||
prefix: | ||
description: 'Documentation prefix' | ||
required: true | ||
default: /docs-instance/ | ||
type: string | ||
jobs: | ||
deploy: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:16.16.0 | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/workflows/actions/install | ||
- uses: ./.github/workflows/actions/build | ||
with: | ||
filter: '\!documentation --filter \!@siemens/html-test-app' | ||
- name: 'Download @siemens/ix-brand-theme' | ||
run: | | ||
rm .yarnrc | ||
ROOT=$(pwd) | ||
echo "@siemens:registry=https://code.siemens.com/api/v4/projects/249177/packages/npm/" >> .npmrc | ||
echo "//code.siemens.com/api/v4/projects/249177/packages/npm/:_authToken=${{ secrets.READ_CSC_TOKEN }}" >> .npmrc | ||
npm install @siemens/ix-brand-theme@^1.0.0 --no-save | ||
rm .npmrc | ||
cp -R ./node_modules/@siemens/ix-brand-theme ./packages/html-test-app/src/public/additional-theme | ||
sed -i -e '/\"publishConfig\"/,/}/ d; /^$/d' ./packages/html-test-app/src/public/additional-theme/ix-brand-theme/package.json | ||
rm ./packages/html-test-app/src/public/additional-theme/ix-brand-theme/package.json-e || true | ||
- name: 'Build documentation for DEV instance' | ||
run: | | ||
yarn workspace @siemens/html-test-app run build | ||
BASE_URL=${{ github.event.inputs.prefix }} yarn workspace documentation run build | ||
- name: 'Copy DEV documentation' | ||
run: | | ||
mkdir -p ./public/dev | ||
cp -R ./packages/documentation/build/. ./public | ||
- name: Deploy documentation to DEV instance | ||
if: ${{ github.event.inputs.confirm_deployment }} | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
personal_token: ${{ secrets.DEPLOY_DEV_PAGES_TOKEN }} | ||
external_repository: ${{ github.event.inputs.repo_url }} | ||
publish_dir: ./public |
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,52 @@ | ||
name: Deploy to PROD GitHub Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
confirm_deployment: | ||
description: 'Please confirm PROD deployment' | ||
required: true | ||
type: boolean | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:16.16.0 | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/workflows/actions/install | ||
- uses: ./.github/workflows/actions/build | ||
with: | ||
filter: '\!documentation --filter \!@siemens/html-test-app' | ||
- name: 'Download @siemens/ix-brand-theme' | ||
run: | | ||
rm .yarnrc | ||
ROOT=$(pwd) | ||
echo "@siemens:registry=https://code.siemens.com/api/v4/projects/249177/packages/npm/" >> .npmrc | ||
echo "//code.siemens.com/api/v4/projects/249177/packages/npm/:_authToken=${{ secrets.READ_CSC_TOKEN }}" >> .npmrc | ||
npm install @siemens/ix-brand-theme@^1.0.0 --no-save | ||
rm .npmrc | ||
cp -R ./node_modules/@siemens/ix-brand-theme ./packages/html-test-app/src/public/additional-theme | ||
sed -i -e '/\"publishConfig\"/,/}/ d; /^$/d' ./packages/html-test-app/src/public/additional-theme/ix-brand-theme/package.json | ||
rm ./packages/html-test-app/src/public/additional-theme/ix-brand-theme/package.json-e || true | ||
- name: 'Build documentation for PROD instance' | ||
run: | | ||
yarn workspace @siemens/html-test-app run build | ||
yarn workspace documentation run build | ||
- name: 'Copy PROD documentation' | ||
run: | | ||
cp -R ./packages/documentation/build/. ./public | ||
- name: Deploy documentation to PROD instance | ||
if: ${{ github.event.inputs.confirm_deployment }} | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./public | ||
cname: ix.siemens.io |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.