-
Notifications
You must be signed in to change notification settings - Fork 4
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 github.com:public-ui/public-ui.github.io into …
…223-add-sample-app-link-in-homepage * 'main' of github.com:public-ui/public-ui.github.io: Improve component card layout: Align badges to on the bottom and add some spacing update custom.css Update update.yml Update update.yml Build docs before registry change Configure correct registry for pnpm i Configure correct registry for pnpm i Restore original Build Docs step Add pnpm i Add step to build docs Adjust paths and add upload-pages-artifact action (#227) Bugfix component overview Fix Badge overflow and ensure a single column layout on mobile devices Move source to root folder Remove docs artifacts Auto update github page chore: update doc Auto update github page update homepage components link
- Loading branch information
Showing
10,094 changed files
with
340 additions
and
1,136,723 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: update github page | ||
name: Update GitHub page | ||
|
||
env: | ||
github-registry: https://npm.pkg.github.com | ||
|
@@ -13,11 +11,20 @@ on: | |
push: | ||
branches: | ||
- main | ||
# schedule: | ||
# - cron: '0 4 * * *' | ||
# workflow_call: | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
@@ -27,36 +34,36 @@ jobs: | |
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
node-version: 20 | ||
registry-url: "${{env.npmjs-registry}}" | ||
scope: "@${{env.scope}}" | ||
|
||
- uses: pnpm/action-setup@v4 | ||
id: pnpm-install | ||
with: | ||
version: 8 | ||
version: 9 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store # -${{ hashFiles('**/pnpm-lock.yaml') }} | ||
key: ${{ runner.os }}-pnpm-store | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store | ||
# - name: Build doc | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{env.token}} | ||
# run: | | ||
# pnpm install --no-frozen-lockfile | ||
# npm run build | ||
# working-directory: dev | ||
- name: Build Docs | ||
run: | | ||
pnpm install --no-frozen-lockfile | ||
npm run build | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
registry-url: "${{env.github-registry}}" | ||
scope: "@${{env.scope}}" | ||
|
||
|
@@ -68,12 +75,11 @@ jobs: | |
npm pack @${{env.scope}}/designer@^1 | ||
tar -xzvf public-ui-designer-*.tgz | ||
rm -rf ../docs/v1/designer | ||
mkdir -p ../docs/v1 | ||
mv package/dist ../docs/v1/designer | ||
rm -rf build/v1/designer | ||
mkdir -p build/v1 | ||
mv package/dist build/v1/designer | ||
rm -rf package *.tgz | ||
working-directory: dev | ||
- name: Download sample react (v1) | ||
env: | ||
|
@@ -83,12 +89,11 @@ jobs: | |
npm pack @${{env.scope}}/sample-react@^1 | ||
tar -xzvf public-ui-sample-react-*.tgz | ||
rm -rf ../docs/v1/sample-react | ||
mkdir -p ../docs/v1 | ||
mv package/dist ../docs/v1/sample-react | ||
rm -rf build/v1/sample-react | ||
mkdir -p build/v1 | ||
mv package/dist build/v1/sample-react | ||
rm -rf package *.tgz | ||
working-directory: dev | ||
- name: Download designer (v2) | ||
env: | ||
|
@@ -98,12 +103,11 @@ jobs: | |
npm pack @${{env.scope}}/designer@^2 | ||
tar -xzvf public-ui-designer-*.tgz | ||
rm -rf ../docs/v2/designer | ||
mkdir -p ../docs/v2 | ||
mv package/dist ../docs/v2/designer | ||
rm -rf build/v2/designer | ||
mkdir -p build/v2 | ||
mv package/dist build/v2/designer | ||
rm -rf package *.tgz | ||
working-directory: dev | ||
- name: Download sample react (v2) | ||
env: | ||
|
@@ -113,48 +117,18 @@ jobs: | |
npm pack @${{env.scope}}/sample-react@^2 | ||
tar -xzvf public-ui-sample-react-*.tgz | ||
rm -rf ../docs/v2/sample-react | ||
mkdir -p ../docs/v2 | ||
mv package/dist ../docs/v2/sample-react | ||
rm -rf build/v2/sample-react | ||
mkdir -p build/v2 | ||
mv package/dist build/v2/sample-react | ||
rm -rf package *.tgz | ||
working-directory: dev | ||
|
||
# - name: Download slidev | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{env.token}} | ||
# run: | | ||
# rm -rf package *.tgz | ||
# npm pack @${{env.scope}}/slidev | ||
# tar -xzvf public-ui-slidev-*.tgz | ||
# mv package/dist build/presentation | ||
# mv package/presentation.pdf build/presentation/presentation.pdf | ||
# rm -rf package *.tgz | ||
# ls -la build | ||
# working-directory: dev | ||
|
||
# - name: Download storybook | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{env.token}} | ||
# run: | | ||
# rm -rf package *.tgz | ||
# npm pack @${{env.scope}}/storybook | ||
# tar -xzvf public-ui-storybook-*.tgz | ||
# mv package/dist build/storybook | ||
# rm -rf package *.tgz | ||
# ls -la build | ||
# working-directory: dev | ||
|
||
- name: Commit changed files | ||
continue-on-error: true | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git status | ||
git commit -m "Auto update github page" | ||
- uses: ad-m/github-push-action@master | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload GitHub Pages artifact | ||
uses: actions/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
force: true | ||
path: build | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.