Skip to content

Commit fb02618

Browse files
authored
Tweak GHA config (#20)
- Update some actions to v2 - Update Zola to v0.11.0 - Only deploy if `github.repository == 'rust-osdev/homepage'`
1 parent dc9a872 commit fb02618

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build-site.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v2
2121

2222
- 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
2424

2525
- name: "Build Site"
2626
run: ./zola build
2727

2828
- name: Upload Generated Site
29-
uses: actions/upload-artifact@v1.0.0
29+
uses: actions/upload-artifact@v2
3030
with:
3131
name: generated_site
3232
path: public
@@ -36,10 +36,10 @@ jobs:
3636
runs-on: ubuntu-latest
3737

3838
steps:
39-
- uses: actions/checkout@v1
39+
- uses: actions/checkout@v2
4040

4141
- 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
4343

4444
- name: "Run zola check"
4545
run: ./zola check
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050

5151
steps:
52-
- uses: actions/checkout@v1
52+
- uses: actions/checkout@v2
5353

5454
- run: curl -L https://git.io/misspell | bash
5555
name: "Install misspell"
@@ -60,11 +60,11 @@ jobs:
6060
name: "Deploy Generated Site"
6161
runs-on: ubuntu-latest
6262
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'
6464

6565
steps:
6666
- name: "Download Generated Site"
67-
uses: actions/download-artifact@v1
67+
uses: actions/download-artifact@v2
6868
with:
6969
name: generated_site
7070

0 commit comments

Comments
 (0)