From 450813144355d9f3811af81e548687c4a27a266f Mon Sep 17 00:00:00 2001 From: Dorian Mazur <46839236+DorianMazur@users.noreply.github.com> Date: Sun, 6 Oct 2024 13:29:21 +0300 Subject: [PATCH] ci: deploy docs only on release (#665) --- .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