From 21c13dccb7bd4b06ea0b901b108e9b0190165e55 Mon Sep 17 00:00:00 2001 From: ScarletFlash Date: Fri, 20 Jan 2023 18:12:31 +0400 Subject: [PATCH] refactor: code-review issues --- .github/workflows/release-docs.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-docs.yaml b/.github/workflows/release-docs.yaml index 41dbdc9..a7d35fe 100644 --- a/.github/workflows/release-docs.yaml +++ b/.github/workflows/release-docs.yaml @@ -1,12 +1,9 @@ name: Release Docs -# on: -# release: -# types: [published] on: - push: - branches: - - '**' + release: + types: [published] + permissions: contents: read @@ -56,7 +53,9 @@ jobs: path: ./ - name: Build docs files - run: npm run build:docs && cp ./docs/index.html ./docs/404.html + run: | + npm run build:docs + cp ./docs/index.html ./docs/404.html - name: Share prepared dist with other jobs uses: actions/cache@v3