Skip to content

Commit 6f4832c

Browse files
author
Tristan Floch
committed
fixup! Split CI script in two dependent workflows
1 parent b6b1c4f commit 6f4832c

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/deploy-website.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Deploy website
22
on:
3-
workflow_run:
4-
workflows: ["Generate API reference"]
5-
branches: [main]
6-
types: [completed]
3+
push:
4+
branches:
5+
- main
76
jobs:
7+
generate-api-reference:
8+
uses: ./.github/workflows/generate-api-reference.yml
89
deploy:
9-
needs: install-run-protoc-gen-doc
10-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
10+
needs: generate-api-reference
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3

.github/workflows/generate-api-reference.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Generate API reference
2-
on: push
2+
on:
3+
push:
4+
branches-ignore:
5+
- main # worflow will be call by deployment if branch is main
6+
workflow_call:
37
permissions:
48
contents: write
59
jobs:

0 commit comments

Comments
 (0)