From 31a54ee636b89602ded187fcf7ef8bcd24bb6c91 Mon Sep 17 00:00:00 2001 From: MazurDorian Date: Fri, 4 Oct 2024 17:07:59 +0300 Subject: [PATCH] ci: deploy docs only on release --- .github/workflows/docs.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index c6b83e04..a35bbde2 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,12 +1,8 @@ name: Docs on: - push: - branches: - - master - pull_request: - branches: - - master + release: + types: [created] jobs: build: @@ -28,7 +24,6 @@ jobs: working-directory: ./website run: yarn build - name: Upload Build Artifact - if: github.ref_name == 'master' uses: actions/upload-pages-artifact@v3 with: path: website/build @@ -37,7 +32,6 @@ jobs: name: Deploy to GitHub Pages needs: build runs-on: ubuntu-latest - if: github.ref_name == 'master' permissions: pages: write