File tree Expand file tree Collapse file tree 2 files changed +38
-15
lines changed
Expand file tree Collapse file tree 2 files changed +38
-15
lines changed Original file line number Diff line number Diff line change 1+ name : Rust
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+ schedule :
9+ # Runs at 00:10 UTC every day.
10+ - cron : ' 10 0 * * *'
11+
12+ env :
13+ CARGO_TERM_COLOR : always
14+
15+ jobs :
16+ build :
17+
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - uses : actions/checkout@v2
22+ with :
23+ fetch-depth : 0
24+ - name : Prepare pages
25+ run : ./prepare-pages.sh
26+ - name : Deploy GitHub Pages
27+ run : |
28+ git worktree add gh-pages gh-pages
29+ git config user.name "Deploy from CI"
30+ git config user.email ""
31+ cd gh-pages
32+ # Delete the ref to avoid keeping history.
33+ git update-ref -d refs/heads/gh-pages
34+ rm -rf *
35+ mv ../output/* .
36+ git add .
37+ git commit -m "Deploy $GITHUB_SHA to gh-pages"
38+ git push --force
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments