From 425d51ce83cc28c37a9a2c27252decd81d89752e Mon Sep 17 00:00:00 2001 From: daniluk4000 Date: Fri, 20 Oct 2023 09:10:16 +0300 Subject: [PATCH] Fix lint, update Github Actions --- .github/workflows/publish.yaml | 36 +++++++++++++++++-- .../src/components/basics/MapBasics.vue | 2 +- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 97c695c4..99eb3138 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -18,12 +18,33 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: install node + - name: Install node uses: actions/setup-node@v3 with: node-version: 20.x - uses: ./.github/actions/codecheck - publish: + docs-build: + name: Docs build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: install node + uses: actions/setup-node@v3 + with: + node-version: 20.x + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Build with VitePress + run: | + yarn docs:build + touch docs/.vitepress/dist/.nojekyll + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: docs/.vitepress/dist + npm-publish: + name: NPM Publish needs: check runs-on: ubuntu-latest steps: @@ -35,3 +56,14 @@ jobs: - run: yarn publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + docs-deploy: + name: Docs Deploy + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: docs-build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/packages/examples/examples/src/components/basics/MapBasics.vue b/packages/examples/examples/src/components/basics/MapBasics.vue index 4c2c10cc..a13124a0 100644 --- a/packages/examples/examples/src/components/basics/MapBasics.vue +++ b/packages/examples/examples/src/components/basics/MapBasics.vue @@ -26,7 +26,7 @@