Skip to content

Commit

Permalink
ci: deploy docs only on release (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianMazur authored Oct 6, 2024
1 parent 06824b3 commit 4508131
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Docs

on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types: [created]

jobs:
build:
Expand All @@ -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
Expand All @@ -37,7 +32,6 @@ jobs:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
if: github.ref_name == 'master'

permissions:
pages: write
Expand Down

0 comments on commit 4508131

Please sign in to comment.