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 }}