Skip to content

Commit 648680d

Browse files
committed
Move deploy step to separate job
1 parent 87836d7 commit 648680d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,10 @@ jobs:
105105
with:
106106
subject-path: documentation/build/attestation/*.jar
107107

108-
documentation:
108+
build_documentation:
109109
name: Build Documentation
110110
needs: macOS
111111
runs-on: ubuntu-latest
112-
permissions:
113-
actions: write
114112
steps:
115113
- name: Check out repository
116114
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -138,3 +136,16 @@ jobs:
138136
env:
139137
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140138
run: gh workflow run deploy-docs.yml --ref docs-site
139+
140+
deploy_documentation:
141+
name: Deploy Documentation
142+
needs: build_documentation
143+
if: github.event_name == 'push' && github.repository == 'junit-team/junit-framework' && github.ref == 'refs/heads/main'
144+
runs-on: ubuntu-latest
145+
permissions:
146+
actions: write
147+
steps:
148+
- name: Trigger documentation site deployment
149+
env:
150+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151+
run: gh workflow run deploy-docs.yml --repo junit-team/junit-framework --ref docs-site

0 commit comments

Comments
 (0)