We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5134a56 commit 789b8e6Copy full SHA for 789b8e6
.github/workflows/build.yml
@@ -30,6 +30,25 @@ jobs:
30
id: build_bundle
31
run: gulp bundle
32
33
+ # Build the Antora preview (ends up in ./public)
34
+ - name: Build preview
35
+ # Only support previews on PRs
36
+ if: "github.event_name == 'pull_request'"
37
+ id: build_preview
38
+ run: gulp preview:build
39
+
40
+ - name: Store PR id
41
42
+ run: echo ${{ github.event.number }} > ./public/pr-id.txt
43
44
+ - name: Publishing directory for PR preview
45
46
+ uses: actions/upload-artifact@v2
47
+ with:
48
+ name: site
49
+ path: ./public
50
+ retention-days: 3
51
52
- name: Publish bundle
53
uses: ncipollo/release-action@v1
54
# Only try and deploy on merged code
0 commit comments