From 0d05a2a6e36729f27f768bb80f20d1b8228c5e23 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Fri, 27 May 2022 23:04:07 +0800 Subject: [PATCH] workflow: gh-pages is no longer deployed --- .github/workflows/preview.yml | 34 ---------------------------------- deploy.sh | 30 ------------------------------ 2 files changed, 64 deletions(-) delete mode 100644 .github/workflows/preview.yml delete mode 100644 deploy.sh diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml deleted file mode 100644 index f0fa03f3d..000000000 --- a/.github/workflows/preview.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: preview - -on: - push: - branches: - - master - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [12.x] - - steps: - - name: Checkout - uses: actions/checkout@v1 - - - name: Setup node - uses: actions/setup-node@v2 - with: - node-version: "16" - registry-url: https://registry.npmjs.com/ - - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: latest - - - name: run deploy.sh - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: pnpm install && pnpm deploy diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index 07204591b..000000000 --- a/deploy.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env sh - -# Replace packaging path -sed -i "s#VITE_PUBLIC_PATH = /#VITE_PUBLIC_PATH = /vue-pure-admin/#g" $(pwd)/.env.production - -# Make sure the script throws the error encountered -set -e - -pnpm build -cd dist -touch README.md .nojekyll - -# deploy to github -if [ -z "$GITHUB_TOKEN" ]; then - msg='deploy' - githubUrl=git@github.com:xiaoxian521/vue-pure-admin.git -else - msg='ci: Automatic deployment from github actions' - githubUrl=https://xiaoxian521:${GITHUB_TOKEN}@github.com/xiaoxian521/vue-pure-admin.git - git config --global user.name "xiaoxian521" - git config --global user.email "1923740402@qq.com" -fi -git init -git add -A -git commit -m "${msg}" -# Push to github gh-pages branch -git push -f $githubUrl master:gh-pages - -cd - -rm -rf dist