Skip to content

Commit

Permalink
Merge branch 'main' of github.com:public-ui/public-ui.github.io into …
Browse files Browse the repository at this point in the history
…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
sdvg committed Jul 31, 2024
2 parents 05fec5e + e531b73 commit 770ff56
Show file tree
Hide file tree
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.
File renamed without changes.
File renamed without changes.
114 changes: 44 additions & 70 deletions .github/workflows/update.yml
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
Expand All @@ -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
Expand All @@ -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}}"

Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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
29 changes: 23 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
# Dependencies
/dev/node_modules/
/dev/docs/readmes/
node_modules/
docs/readmes/

# Production
/dev/build/
build/

# Generated files
/dev/.docusaurus
/dev/.cache-loader
/docs2/
.docusaurus
.cache-loader
readmes

# Copied assets
/static/assets/bpa-icons/
/static/assets/bundes/
/static/assets/codicons/
/static/assets/fontawesome-free/
/static/assets/icofont/
/static/assets/kreon/
/static/assets/material-icons/
/static/assets/material-symbols/
/static/assets/noto-sans/
/static/assets/roboto/
/static/assets/tabler-icons/
/static/assets/kolibri.ico
/static/cheat-sheet/
/static/assets/components-esm
/static/assets/themes

# Misc
.DS_Store
Expand Down
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.
40 changes: 0 additions & 40 deletions dev/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions dev/.vscode/settings.json

This file was deleted.

74 changes: 0 additions & 74 deletions docs/-.htaccess

This file was deleted.

1 change: 0 additions & 1 deletion docs/-manifest.json

This file was deleted.

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.
Loading

0 comments on commit 770ff56

Please sign in to comment.