|
4 | 4 | # Runs when manually triggered from the GitHub UI. |
5 | 5 | workflow_dispatch: |
6 | 6 |
|
| 7 | + # Dry-run trigger for docs migration branch. |
| 8 | + push: |
| 9 | + branches: |
| 10 | + - migrate-docs-to-yarn |
| 11 | + |
7 | 12 | # Runs when invoked by another workflow. |
8 | 13 | workflow_call: |
9 | 14 | inputs: |
@@ -41,10 +46,13 @@ jobs: |
41 | 46 | cache: yarn |
42 | 47 | cache-dependency-path: website/yarn.lock |
43 | 48 |
|
| 49 | + - name: Enable Corepack |
| 50 | + run: corepack enable |
| 51 | + |
44 | 52 | - name: Install Node dependencies |
45 | 53 | run: | |
46 | 54 | yarn install |
47 | | - yarn upgrade @apify/docs-theme |
| 55 | + yarn up @apify/docs-theme |
48 | 56 | working-directory: ./website |
49 | 57 |
|
50 | 58 | # We do this as early as possible to prevent conflicts if someone else would push something in the meantime |
|
74 | 82 | run: uv run poe build-docs |
75 | 83 | env: |
76 | 84 | APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }} |
77 | | - |
78 | | - - name: Set up GitHub Pages |
79 | | - uses: actions/configure-pages@v5 |
80 | | - |
81 | | - - name: Upload GitHub Pages artifact |
82 | | - uses: actions/upload-pages-artifact@v4 |
83 | | - with: |
84 | | - path: ./website/build |
85 | | - |
86 | | - - name: Deploy artifact to GitHub Pages |
87 | | - uses: actions/deploy-pages@v4 |
88 | | - |
89 | | - - name: Invalidate CloudFront cache |
90 | | - run: | |
91 | | - gh workflow run invalidate-cloudfront.yml \ |
92 | | - --repo apify/apify-docs-private \ |
93 | | - --field deployment=apify-docs |
94 | | - echo "✅ CloudFront cache invalidation workflow triggered successfully" |
95 | | - env: |
96 | | - GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} |
0 commit comments