ci: test
This commit is contained in:
74
.github/workflows/deploy.yml
vendored
74
.github/workflows/deploy.yml
vendored
@@ -25,8 +25,8 @@ jobs:
|
|||||||
do
|
do
|
||||||
echo $line
|
echo $line
|
||||||
done
|
done
|
||||||
# - name: Build
|
- name: Build
|
||||||
# run: yarn build --report
|
run: yarn build --report
|
||||||
- name: CDN download qshell
|
- name: CDN download qshell
|
||||||
run: |
|
run: |
|
||||||
wget http://devtools.qiniu.com/qshell-linux-x86-v2.4.0.zip
|
wget http://devtools.qiniu.com/qshell-linux-x86-v2.4.0.zip
|
||||||
@@ -34,18 +34,18 @@ jobs:
|
|||||||
mv qshell-linux-x86-v2.4.0 qshell
|
mv qshell-linux-x86-v2.4.0 qshell
|
||||||
- name: CDN login
|
- name: CDN login
|
||||||
run: ./qshell account ${{ secrets.AK }} ${{ secrets.SK }} GITHUB_ACTION
|
run: ./qshell account ${{ secrets.AK }} ${{ secrets.SK }} GITHUB_ACTION
|
||||||
# - name: CDN upload
|
- name: CDN upload
|
||||||
# run: |
|
run: |
|
||||||
# ./qshell qupload2 \
|
./qshell qupload2 \
|
||||||
# --src-dir=$GITHUB_WORKSPACE/dist \
|
--src-dir=$GITHUB_WORKSPACE/dist \
|
||||||
# --bucket=d2-cdn \
|
--bucket=d2-cdn \
|
||||||
# --key-prefix=${GITHUB_REPOSITORY//*\//}/preview/ \
|
--key-prefix=${GITHUB_REPOSITORY//*\//}/preview/ \
|
||||||
# --overwrite=true \
|
--overwrite=true \
|
||||||
# --check-exists=true \
|
--check-exists=true \
|
||||||
# --check-hash=true \
|
--check-hash=true \
|
||||||
# --check-size=true \
|
--check-size=true \
|
||||||
# --rescan-local=true \
|
--rescan-local=true \
|
||||||
# --thread-count=32
|
--thread-count=32
|
||||||
- name: CDN refresh
|
- name: CDN refresh
|
||||||
run: |
|
run: |
|
||||||
echo "https://cdn.d2.pub/${GITHUB_REPOSITORY//*\//}/preview/" > cdnrefresh.txt
|
echo "https://cdn.d2.pub/${GITHUB_REPOSITORY//*\//}/preview/" > cdnrefresh.txt
|
||||||
@@ -69,19 +69,19 @@ jobs:
|
|||||||
do
|
do
|
||||||
echo $line
|
echo $line
|
||||||
done
|
done
|
||||||
# - name: Build
|
- name: Build
|
||||||
# run: yarn build --report
|
run: yarn build --report
|
||||||
# - name: Deploy
|
- name: Deploy
|
||||||
# uses: SamKirkland/FTP-Deploy-Action@2.0.0
|
uses: SamKirkland/FTP-Deploy-Action@2.0.0
|
||||||
# env:
|
env:
|
||||||
# FTP_SERVER: ${{ secrets.FTP_SERVER }}
|
FTP_SERVER: ${{ secrets.FTP_SERVER }}
|
||||||
# FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
||||||
# FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
||||||
# METHOD: sftp
|
METHOD: sftp
|
||||||
# PORT: ${{ secrets.FTP_PORT }}
|
PORT: ${{ secrets.FTP_PORT }}
|
||||||
# LOCAL_DIR: dist
|
LOCAL_DIR: dist
|
||||||
# REMOTE_DIR: /www/d2-admin/preview
|
REMOTE_DIR: /www/d2-admin/preview
|
||||||
# ARGS: --delete --verbose --parallel=100
|
ARGS: --delete --verbose --parallel=100
|
||||||
|
|
||||||
gh-pages:
|
gh-pages:
|
||||||
name: Github Pages
|
name: Github Pages
|
||||||
@@ -101,13 +101,13 @@ jobs:
|
|||||||
do
|
do
|
||||||
echo $line
|
echo $line
|
||||||
done
|
done
|
||||||
# - name: Build
|
- name: Build
|
||||||
# run: yarn build --report
|
run: yarn build --report
|
||||||
# - name: Deploy
|
- name: Deploy
|
||||||
# uses: peaceiris/actions-gh-pages@v2
|
uses: peaceiris/actions-gh-pages@v2
|
||||||
# env:
|
env:
|
||||||
# PERSONAL_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
PERSONAL_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
# PUBLISH_BRANCH: gh-pages
|
PUBLISH_BRANCH: gh-pages
|
||||||
# PUBLISH_DIR: ./dist
|
PUBLISH_DIR: ./dist
|
||||||
# with:
|
with:
|
||||||
# forceOrphan: true
|
forceOrphan: true
|
||||||
Reference in New Issue
Block a user