File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches : ["*"]
4
+ tags : ["*"]
5
+ pull_request :
6
+
7
+ jobs :
8
+ deploy :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout repository
12
+ uses : actions/checkout@v4
13
+
14
+ - name : Install Zola
15
+ run : ./.ci/ci.sh
16
+
17
+ - name : Build the pages
18
+ run : ./build.sh
19
+
20
+ - name : Deploy to website
21
+ shell : bash
22
+ if : ${{ !github.base_ref && github.ref == "refs/heads/master" }}
23
+ run : |
24
+ mkdir -p ~/.ssh
25
+ echo '${{ secrets.KNOWN_HOST_STRING }}' >> ~/.ssh/known_hosts
26
+ echo '${{ secrets.KEY_CONTENT }}' > ~/.ssh/id_upload_key
27
+ chmod 0600 ~/.ssh/id_upload_key
28
+ rsync -rlOvhze ssh --progress public/* 'upload@${{ secrets.UPLOAD_HOST }}:/srv/aosc-wiki/'
29
+ echo "Visit your site at: https://wiki.aosc.io"
You can’t perform that action at this time.
0 commit comments