-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Talend/ui into feat/TMC-620/add-n…
…ew-illustrations
- Loading branch information
Showing
9 changed files
with
206 additions
and
216 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Delete PR folder in gh-pages | ||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
statuses: write | ||
checks: write | ||
pages: write | ||
|
||
jobs: | ||
clean: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout demo branch | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | ||
with: | ||
path: demo | ||
ref: gh-pages | ||
|
||
- name: Delete PR folder | ||
run: | | ||
rm -rf ./demo/${{ github.event.number }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Commit demo for gh-pages | ||
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 #v1.4 | ||
with: | ||
directory: "./demo" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
message: "doc: cleanup demo" | ||
branch: gh-pages |
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,84 @@ | ||
name: Demo CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
statuses: write | ||
checks: write | ||
pages: write | ||
|
||
# This allows a subsequently queued workflow run to interrupt previous runs | ||
concurrency: | ||
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | ||
|
||
- name: Use Node.js | ||
uses: ./.github/actions/setup-node | ||
|
||
- name: Install | ||
working-directory: ./ | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Build Demo | ||
run: yarn test:demo | ||
|
||
- name: Checkout demo branch | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | ||
with: | ||
path: demo | ||
ref: gh-pages | ||
|
||
- name: Add demo and commit it | ||
# symlink creation : workaround to be able to use service worker on storybook both in local and via github pages deployment | ||
run: | | ||
echo "Prepare demo folder" | ||
cd demo && git rm -rf --ignore-unmatch ./main && cd .. | ||
mkdir -p ./demo/main | ||
cp ./index.html ./demo/main/ | ||
mkdir ./demo/main/cmf | ||
mkdir ./demo/main/containers | ||
mkdir ./demo/main/design-system | ||
mkdir ./demo/main/faceted-search | ||
mkdir ./demo/main/theme | ||
mkdir ./demo/main/storybook-one | ||
cp -R packages/cmf/jsdoc ./demo/main/cmf | ||
cp -R packages/containers/storybook-static/* ./demo/main/containers | ||
cp -R packages/design-docs/storybook-static/* ./demo/main/design-system | ||
cp -R packages/faceted-search/storybook-static/* ./demo/main/faceted-search | ||
cp -R packages/theme/dist/* ./demo/main/theme | ||
cp -R packages/storybook-one/storybook-static/* ./demo/main/storybook-one | ||
echo Size of demo: | ||
du -d 1 -h ./demo/main | ||
cd demo && git add . | ||
- name: Commit demo for gh-pages | ||
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 #v1.4 | ||
with: | ||
directory: "./demo" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
message: "doc: update demo" | ||
branch: gh-pages | ||
|
||
- name: Deploy to Netlify production | ||
if: github.ref == 'refs/heads/master' | ||
uses: netlify/actions/cli@master | ||
with: | ||
args: deploy --dir=packages/design-docs/storybook-static --prod | ||
env: | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.