Skip to content

Commit 8297747

Browse files
committed
Simplify deploy workflow
1 parent 685260d commit 8297747

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Deploy To GitHub Pages
22
on:
33
schedule:
44
- cron: '0 22 * * *'
5-
pull_request:
65
push:
76
branches:
87
- master
@@ -19,13 +18,12 @@ jobs:
1918
- name: Build book
2019
run: ./mdbook build
2120
- name: Upload artifact
22-
if: github.ref == 'refs/heads/master'
2321
uses: actions/upload-pages-artifact@v3
2422
with:
2523
path: ./book
2624

2725
deploy:
28-
if: github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang'
26+
if: github.repository_owner == 'rust-lang'
2927
needs: build
3028

3129
permissions:

0 commit comments

Comments
 (0)