Skip to content

Commit

Permalink
[optimize] upgrade to BootCell v2
Browse files Browse the repository at this point in the history
[migrate] replace Travis CI with GitHub actions
[fix] some Outdated CSS & Data
[remove] broken Gitter.im sidecar
  • Loading branch information
TechQuery committed Jan 19, 2024
1 parent 354aa16 commit 90aa9ce
Show file tree
Hide file tree
Showing 17 changed files with 480 additions and 257 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI & CD
on:
push:
branches:
- source
jobs:
Build-and-Deploy:
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install & Build
run: |
pnpm i --frozen-lockfile
pnpm build
- name: Deploy to GitHub pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./dist
personal_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true

- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./dist
vercel-args: --prod
35 changes: 35 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Commit preview
on:
push:
branches-ignore:
- source
jobs:
Build-and-Deploy:
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install & Build
run: |
pnpm i --frozen-lockfile
pnpm build
- uses: amondnet/vercel-action@v25
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./dist
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ node_modules/
package-lock.json
yarn.lock
dist/
.cache/
.parcel-cache/
.husky/
.vscode/
8 changes: 8 additions & 0 deletions .parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@parcel/config-default",
"transformers": {
"*.{ts,tsx}": [
"@parcel/transformer-typescript-tsc"
]
}
}
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# WebCell official website

Design of https://web-cell.dev/ is based on [Product][1] & [Carousel][2] templates of BootStrap 4.
Design of https://web-cell.dev/ is based on [Product][1] & [Carousel][2] templates of BootStrap 5.

[![NPM Dependency](https://david-dm.org/EasyWebApp/EasyWebApp.github.io.svg)][3]
[![Build Status](https://travis-ci.com/EasyWebApp/EasyWebApp.github.io.svg?branch=source)][4]
[![CI & CD](https://github.com/EasyWebApp/EasyWebApp.github.io/actions/workflows/main.yml/badge.svg)][3]

[1]: https://getbootstrap.com/docs/4.5/examples/product/
[2]: https://getbootstrap.com/docs/4.5/examples/carousel/
[3]: https://david-dm.org/EasyWebApp/EasyWebApp.github.io
[4]: https://travis-ci.com/EasyWebApp/EasyWebApp.github.io
[3]: https://github.com/EasyWebApp/EasyWebApp.github.io/actions/workflows/main.yml
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/EasyWebApp/EasyWebApp.github.io/issues"
},
"dependencies": {
"boot-cell": "^2.0.0-beta.2",
"boot-cell": "^2.0.0-beta.7",
"cell-router": "^3.0.0-rc.5",
"classnames": "^2.5.1",
"dom-renderer": "^2.0.6",
Expand All @@ -33,6 +33,11 @@
"web-utility": "^4.1.3"
},
"devDependencies": {
"@parcel/config-default": "~2.11.0",
"@parcel/packager-raw-url": "~2.11.0",
"@parcel/transformer-less": "~2.11.0",
"@parcel/transformer-typescript-tsc": "~2.11.0",
"@parcel/transformer-webmanifest": "~2.11.0",
"@types/classnames": "^2.3.1",
"@types/node": "^18.19.8",
"husky": "^8.0.3",
Expand Down
Loading

1 comment on commit 90aa9ce

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for web-cell-ows ready!

✅ Preview
https://web-cell-o5kv2ifew-techquery.vercel.app

Built with commit 90aa9ce.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.