From 8eabda364961f8fa824508dde68a3f45eb3a08e7 Mon Sep 17 00:00:00 2001 From: Pavel Popov Date: Tue, 5 Apr 2022 13:21:57 +0300 Subject: [PATCH] Add gh pages (#26) * Add gh pages * Add EOF * Remove pull_request trigger on gh-pages --- .github/workflows/gh-pages.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 1f0db5f..8d7b4ec 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -4,26 +4,25 @@ on: branches: [v0] env: - NODEJS_VERSION: '16' + NODEJS_VERSION: "16" jobs: publish: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 - with: - submodules: recursive + uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ env.NODEJS_VERSION }} cache: npm - run: npm install - - name: Include web stuff - run: cp -v web/* dist/ + - name: Bundle specification + run: npm run build - name: Publish ReDoc on Github Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist + exclude_assets: "swagger-ui"