Skip to content

Commit c6a848f

Browse files
committed
ci: run the docs workflow for more triggers
But update the package/upload and deploy steps to only happen for rustls-ffi's main branch.
1 parent de4cfab commit c6a848f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/docs.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ permissions:
66
on:
77
workflow_dispatch:
88
push:
9-
branches:
10-
- main
9+
branches: ['main', 'rel-*', 'ci/*']
10+
pull_request:
11+
merge_group:
1112
schedule:
1213
- cron: '0 18 * * *'
1314

@@ -44,13 +45,14 @@ jobs:
4445
4546
- name: Package and upload artifact
4647
uses: actions/upload-pages-artifact@v3
48+
if: github.ref == 'refs/heads/main'
4749
with:
4850
path: ./target/website/
4951

5052
deploy:
5153
name: Deploy
5254
runs-on: ubuntu-latest
53-
if: github.repository == 'rustls/rustls-ffi'
55+
if: github.repository == 'rustls/rustls-ffi' && github.ref == 'refs/heads/main'
5456
needs: generate
5557
permissions:
5658
pages: write

0 commit comments

Comments
 (0)