@@ -17,16 +17,16 @@ jobs:
17
17
runs-on : ubuntu-latest
18
18
19
19
steps :
20
- - uses : actions/checkout@v1
20
+ - uses : actions/checkout@v2
21
21
22
22
- name : ' Download Zola'
23
- run : curl -sL https://github.com/getzola/zola/releases/download/v0.10 .0/zola-v0.10 .0-x86_64-unknown-linux-gnu.tar.gz | tar zxv
23
+ run : curl -sL https://github.com/getzola/zola/releases/download/v0.11 .0/zola-v0.11 .0-x86_64-unknown-linux-gnu.tar.gz | tar zxv
24
24
25
25
- name : " Build Site"
26
26
run : ./zola build
27
27
28
28
- name : Upload Generated Site
29
- uses : actions/upload-artifact@v1.0.0
29
+ uses : actions/upload-artifact@v2
30
30
with :
31
31
name : generated_site
32
32
path : public
@@ -36,10 +36,10 @@ jobs:
36
36
runs-on : ubuntu-latest
37
37
38
38
steps :
39
- - uses : actions/checkout@v1
39
+ - uses : actions/checkout@v2
40
40
41
41
- name : ' Download Zola'
42
- run : curl -sL https://github.com/getzola/zola/releases/download/v0.10 .0/zola-v0.10 .0-x86_64-unknown-linux-gnu.tar.gz | tar zxv
42
+ run : curl -sL https://github.com/getzola/zola/releases/download/v0.11 .0/zola-v0.11 .0-x86_64-unknown-linux-gnu.tar.gz | tar zxv
43
43
44
44
- name : " Run zola check"
45
45
run : ./zola check
49
49
runs-on : ubuntu-latest
50
50
51
51
steps :
52
- - uses : actions/checkout@v1
52
+ - uses : actions/checkout@v2
53
53
54
54
- run : curl -L https://git.io/misspell | bash
55
55
name : " Install misspell"
@@ -60,11 +60,11 @@ jobs:
60
60
name : " Deploy Generated Site"
61
61
runs-on : ubuntu-latest
62
62
needs : [build_site, check_spelling]
63
- if : github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
63
+ if : github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule') && github.repository == 'rust-osdev/homepage'
64
64
65
65
steps :
66
66
- name : " Download Generated Site"
67
- uses : actions/download-artifact@v1
67
+ uses : actions/download-artifact@v2
68
68
with :
69
69
name : generated_site
70
70
0 commit comments