Skip to content

Commit

Permalink
ci: correct documentation workflow [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ridvanaltun committed Sep 19, 2023
1 parent c4a35fe commit 33bed4e
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Build Documentation

on:
workflow_dispatch: # for manuel document triggering
workflow_run:
workflows:
- Build and Deploy
types:
- completed
pull_request:
branches:
- main
Expand All @@ -11,16 +17,16 @@ on:
- '*.json'
- '*.js'
- '*.lock'
push:
branches:
- main
paths:
- '.github/workflows/build-docs.yml'
- 'documentation/**'
- 'src/**'
- '*.json'
- '*.js'
- '*.lock'
# push:
# branches:
# - main
# paths:
# - '.github/workflows/build-docs.yml'
# - 'documentation/**'
# - 'src/**'
# - '*.json'
# - '*.js'
# - '*.lock'

jobs:
checks:
Expand Down Expand Up @@ -52,7 +58,9 @@ jobs:
yarn install --frozen-lockfile
yarn build
gh-release:
if: github.event_name == 'push'
# if: github.event_name == 'push'
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
name: Deploy Documentation
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 33bed4e

Please sign in to comment.