Skip to content

Commit

Permalink
2024-10-31 12:19:21
Browse files Browse the repository at this point in the history
  • Loading branch information
langnang committed Oct 31, 2024
1 parent 16ce948 commit ac285a6
Show file tree
Hide file tree
Showing 38 changed files with 707 additions and 657 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/lumen8-modules-byethost.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 🚀 Deploy lumen8-modules on push with FTP

on:
push:
branches:
- master
paths:
- "nodejs/vue2-element-ui/**"

jobs:
deploy:
name: 🎉 Deploy to langnang.byethost14.com
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2

- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x

- name: Install && Build
run: |
cd nodejs/vue2-element-ui
yarn install
npm run build
# - name: Install composer dependencies
# run: cd composer/lumen8-modules && composer install

- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
# ftp server
server: ftpupload.net
# ftp username
username: b14_37610952
# ftp password
password: ${{ secrets.ftp_password }}
# local dir
local-dir: ./nodejs/vue2-element-ui/dist/
# Path to upload to on the server. Must end with trailing slash /
server-dir: /htdocs/~/nodejs/pattle/
# File to Exclude
exclude: |
**/.git*
**/.git*/**
**/.github*/**
**/node_modules/**
46 changes: 23 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# GitHub Actions Vue Demo
name: Vue App Build and Deploy # 名称
on:
push:
branches:
- master # master 分支发生push事件时触发
jobs:
build-and-deploy: # 任务
runs-on: ubuntu-latest # 运行环境
steps: # 运行步骤
- name: Checkout
uses: actions/checkout@master # 获取源码

- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
# GitHub Actions Vue Demo
name: Vue App Build and Deploy # 名称
on:
push:
branches:
- master # master 分支发生push事件时触发
jobs:
build-and-deploy: # 任务
runs-on: ubuntu-latest # 运行环境
steps: # 运行步骤
- name: Checkout
uses: actions/checkout@master # 获取源码

- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
30 changes: 15 additions & 15 deletions README.md → nodejs/vue2-element-ui/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Palette

> 调色板(离线缓存版)
## Basic

- add
- del
- edit

## Batch

- import
- export
- del
# Palette

> 调色板(离线缓存版)
## Basic

- add
- del
- edit

## Batch

- import
- export
- del
10 changes: 5 additions & 5 deletions babel.config.js → nodejs/vue2-element-ui/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
File renamed without changes.
File renamed without changes.
40 changes: 20 additions & 20 deletions public/index.html → nodejs/vue2-element-ui/public/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>

<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>

<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>

</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Loading

0 comments on commit ac285a6

Please sign in to comment.