generated from JX3BOX/jx3box-vue-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
109 additions
and
78 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Preview Master | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [v16.18.1] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install && Build | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Github Pages | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: dist | ||
CLEAN: true | ||
|
||
## TODO:下方修改两处 | ||
- name: OSS | ||
uses: manyuanrong/[email protected] | ||
with: | ||
endpoint: "oss-cn-hangzhou.aliyuncs.com" | ||
access-key-id: ${{secrets.AccessKey_ID}} | ||
access-key-secret: ${{secrets.Access_Key_Secret}} | ||
- run: ossutil cp -rf dist oss://jx3box/static/macro | ||
#- run: ossutil cp -rf dist oss://jx3box-www/macro | ||
|
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,39 +1,30 @@ | ||
name: Github Pages | ||
name: Preview Master | ||
on: | ||
push: | ||
branches: | ||
- master | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [v16.18.1] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [v16.18.1] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install && Build | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Github Pages | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: dist | ||
CLEAN: true | ||
# CLEAN_EXCLUDE: '["css", "js"]' | ||
|
||
- name: OSS | ||
uses: manyuanrong/[email protected] | ||
with: | ||
endpoint: "oss-cn-hangzhou.aliyuncs.com" | ||
access-key-id: ${{secrets.AccessKey_ID}} | ||
access-key-secret: ${{secrets.Access_Key_Secret}} | ||
- run: ossutil cp -rf dist oss://jx3box/static/macro | ||
## TODO:下方修改一处 | ||
- name: Deploy | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.HOST_NANJING2 }} | ||
username: ${{ secrets.DEPLOY_USER }} | ||
key: ${{ secrets.DEPLOY_KEY }} | ||
script: | | ||
cd /www/wwwroot/jx3box/jx3box-v2 | ||
cd macro | ||
git checkout gh-pages | ||
git pull origin gh-pages |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Preview Dev | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [v16.18.1] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install && Build | ||
run: | | ||
npm install | ||
npm run preview | ||
## TODO:下方修改1处 | ||
- name: GrayEnv | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST_NANJING2 }} | ||
username: ${{ secrets.DEPLOY_USER }} | ||
key: ${{ secrets.DEPLOY_KEY }} | ||
source: macro/* | ||
target: /www/wwwroot/jx3box/test | ||
|
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
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 |
---|---|---|
|
@@ -327,6 +327,7 @@ | |
.db; | ||
.mt(3px); | ||
.clear; | ||
i{.mr(5px);} | ||
} | ||
|
||
.u-down { | ||
|
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