From c7b670e26de3ca48f01b6c37a2055de08357b805 Mon Sep 17 00:00:00 2001 From: bitliu Date: Fri, 8 Sep 2023 15:51:13 +0800 Subject: [PATCH] :memo: Remove docs Signed-off-by: bitliu --- .github/workflows/docs.yaml | 66 -------------------------------- .github/workflows/hugo-docs.yaml | 2 + 2 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 .github/workflows/docs.yaml diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml deleted file mode 100644 index 1d0d351749e7..000000000000 --- a/.github/workflows/docs.yaml +++ /dev/null @@ -1,66 +0,0 @@ -name: Docs -on: - push: - branches: - - "main" - paths-ignore: - - "**/*.png" - pull_request: - branches: - - "main" - paths-ignore: - - "**/*.png" - -jobs: - docs-lint: - runs-on: ubuntu-22.04 - steps: - - name: Check out code - uses: actions/checkout@v3 - - - name: Run markdown linter - uses: nosborn/github-action-markdown-cli@v3.3.0 - with: - files: docs/* - config_file: ".github/markdown_lint_config.json" - - docs-build: - runs-on: ubuntu-latest - needs: docs-lint - steps: - - uses: actions/checkout@v3 - - uses: ./tools/github-actions/setup-deps - - - name: Generate EG Pages - run: make docs - - # Upload docs for GitHub Pages - - name: Upload GitHub Pages artifact - uses: actions/upload-pages-artifact@v2.0.0 - with: - # Path of the directory containing the static assets. - path: docs/html - # Duration after which artifact will expire in days. - # retention-days: # optional, default is 1 - - # This workflow contains a single job called "build" - docs-publish: - if: github.event_name == 'push' - runs-on: ubuntu-latest - needs: docs-build - - # Grant GITHUB_TOKEN the permissions required to make a Pages deployment - permissions: - pages: write # to deploy to Pages - deployments: write - id-token: write # to verify the deployment originates from an appropriate source - - # Deploy to the github-pages environment - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2.0.4 diff --git a/.github/workflows/hugo-docs.yaml b/.github/workflows/hugo-docs.yaml index b6e463309c8e..169c71903479 100644 --- a/.github/workflows/hugo-docs.yaml +++ b/.github/workflows/hugo-docs.yaml @@ -34,8 +34,10 @@ jobs: uses: actions/setup-node@v3 with: node-version: '18' + - name: Install Site Dependencies run: cd site && npm install + - name: Build Site run: cd site && npm run build:production