chore: switch back to @ctrl/tinycolor
(#4077)
#1
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
name: Deploy Website on push | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-push-ftp: | |
name: Deploy Push Ftp | |
if: github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Sed Config Base | |
shell: bash | |
run: | | |
sed -i "s#VITE_COMPRESS\s*=.*#VITE_COMPRESS = gzip#g" ./apps/web-antd/.env.production | |
sed -i "s#VITE_PWA\s*=.*#VITE_PWA = true#g" ./apps/web-antd/.env.production | |
cat ./apps/web-antd/.env.production | |
sed -i "s#VITE_COMPRESS\s*=.*#VITE_COMPRESS = gzip#g" ./apps/web-ele/.env.production | |
sed -i "s#VITE_PWA\s*=.*#VITE_PWA = true#g" ./apps/web-ele/.env.production | |
cat ./apps/web-ele/.env.production | |
sed -i "s#VITE_COMPRESS\s*=.*#VITE_COMPRESS = gzip#g" ./apps/web-naive/.env.production | |
sed -i "s#VITE_PWA\s*=.*#VITE_PWA = true#g" ./apps/web-naive/.env.production | |
cat ./apps/web-naive/.env.production | |
- name: Setup Node | |
uses: ./.github/actions/setup-node | |
- name: Build | |
run: pnpm run build | |
- name: Sync Web Antd files | |
uses: SamKirkland/FTP-Deploy-Action@v4.3.5 | |
with: | |
server: ${{ secrets.PRO_FTP_HOST }} | |
username: ${{ secrets.WEB_ANTD_FTP_ACCOUNT }} | |
password: ${{ secrets.WEB_ANTD_FTP_PASSWORD }} | |
local-dir: ./apps/web-antd/dist/ | |
- name: Sync Web Naive files | |
uses: SamKirkland/FTP-Deploy-Action@v4.3.5 | |
with: | |
server: ${{ secrets.PRO_FTP_HOST }} | |
username: ${{ secrets.WEB_NAIVE_FTP_ACCOUNT }} | |
password: ${{ secrets.WEB_NAIVE_FTP_PASSWORD }} | |
local-dir: ./apps/web-naive/dist/ | |
- name: Sync Web Ele files | |
uses: SamKirkland/FTP-Deploy-Action@v4.3.5 | |
with: | |
server: ${{ secrets.PRO_FTP_HOST }} | |
username: ${{ secrets.WEB_ELE_FTP_ACCOUNT }} | |
password: ${{ secrets.WEB_ELE_FTP_PASSWORD }} | |
local-dir: ./apps/web-ele/dist/ | |
- name: Sync Docs files | |
uses: SamKirkland/FTP-Deploy-Action@v4.3.5 | |
with: | |
server: ${{ secrets.PRO_FTP_HOST }} | |
username: ${{ secrets.WEBSITE_FTP_ACCOUNT }} | |
password: ${{ secrets.WEBSITE_FTP_PASSWORD }} | |
local-dir: ./docs/.vitepress/dist/ |