From db60666ca6fac88a842559060e4c652c79f3fa65 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Fri, 19 May 2023 12:47:17 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20=E8=B0=83=E6=95=B4ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-drafter.yml | 1 + .github/workflows/website-preview.yml | 40 --------------------------- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 .github/workflows/website-preview.yml diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index ed5192e..26228ee 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,6 +1,7 @@ name: Release Drafter on: + workflow_dispatch: pull_request_target: branches: - main diff --git a/.github/workflows/website-preview.yml b/.github/workflows/website-preview.yml deleted file mode 100644 index 668a096..0000000 --- a/.github/workflows/website-preview.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Site Deploy(Preview) - -on: - pull_request_target: - paths: - - docs/** - - package.json - - yarn.lock - -jobs: - preview: - runs-on: ubuntu-latest - concurrency: - group: pull-request-preview-${{ github.event.number }} - cancel-in-progress: true - - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - - - name: Build Docs - uses: ./.github/actions/build-docs - - - name: Get Deploy Name - run: | - echo "DEPLOY_NAME=deploy-preview-${{ github.event.number }}" >> $GITHUB_ENV - - - name: Deploy to Netlify - uses: nwtgck/actions-netlify@v1 - with: - publish-dir: "./docs/.vuepress/dist" - production-deploy: false - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Deploy ${{ env.DEPLOY_NAME }}@${{ github.sha }}" - enable-commit-comment: false - alias: ${{ env.DEPLOY_NAME }} - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}