OILS / .github / workflows / udpate-wiki.yml View on Github | oils.pub

41 lines, 34 significant
1name: update-wiki
2on:
3 # Triggered whenever the wiki is updated
4 - golumn
5
6jobs:
7 # Build the wiki and commit+push it to oils-for-unix.github.io
8 build-deploy:
9 runs-on: ubuntu-22.04
10 env:
11 OILS_PAGES_GITHUB_USER: ${{ secrets.OILS_PAGES_GITHUB_USER }}
12 OILS_PAGES_GITHUB_TOKEN: ${{ secrets.OILS_PAGES_GITHUB_TOKEN }}
13 steps:
14 - name: Check out repository code
15 uses: actions/checkout@v4
16
17 - name: Install CommonMark
18 run: |
19 sudo apt install cmark
20
21 - name: Install YSH
22 run: |
23 expected="f4d41d20a0523dbcfbd4ba231f82edf25b08d4965d65bc71fcb56666d6743000"
24 wget -qO- "https://oils.pub/download/oils-for-unix-0.37.0.tar.gz" \
25 | tee oils-for-unix-0.37.0.tar.gz \
26 | sha256sum --check <(echo "$expected -")
27
28 tar -x --gz < oils-for-unix-0.37.0.tar.gz
29 cd oils-for-unix-0.37.0
30
31 ./configure
32 _build/oils.sh
33 sudo ./install
34
35 - name: Render Wiki Markdown
36 run: |
37 build/wiki.ysh render
38
39 - name: Commit and Push
40 run: |
41 build/wiki.ysh commit-push