Subversion Repositories Tewi

Rev

Rev 268 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
267 nishi 1
# $Id: doc.yml 280 2024-10-08 12:38:14Z nishi $
2
 
3
name: "Build Tewi HTTPd Document"
4
 
5
on:
6
  workflow_dispatch:
7
  push:
8
 
9
concurrency:
268 nishi 10
  group: "doc"
267 nishi 11
  cancel-in-progress: true
12
 
13
jobs:
14
  doc:
15
 
16
    name: "Deploy pages"
17
 
18
    runs-on: ubuntu-latest
19
 
20
    environment:
21
      name: github-pages
22
      url: ${{ steps.deployment.outputs.page_url }}
23
 
24
    permissions:
25
      contents: write
26
      pages: write
27
      id-token: write
28
 
29
    steps:
30
    - name: Checkout
31
      uses: actions/checkout@v4
32
    - name: Install packages
280 nishi 33
      run: sudo apt-get install tcl subversion enscript
267 nishi 34
    - name: Get docgen
35
      run: svn co http://svn.nishi.boats/repo/docgen/trunk docgen
36
    - name: Build document
37
      run: cd Document && ../docgen/docgen
38
    - name: Make HTML
39
      run: echo "<html><head><meta charset=\"UTF-8\"><title>Select</title></head><body><h1>Select</h1><hr><ul><li><a href=\"./en\">English</a></li><li><a href=\"./jp\">Japanese</a></li></ul></body></html>" > Document/output/index.html
40
    - name: Setup Pages
41
      uses: actions/configure-pages@v4
42
    - name: Upload pages
43
      uses: actions/upload-pages-artifact@v3
44
      with:
45
        path: "Document/output"
46
    - name: Deploy
47
      uses: actions/deploy-pages@v4