Line | |
---|
1 | # $Id: doc.yml 268 2024-10-05 09:20:29Z nishi $
|
---|
2 |
|
---|
3 | name: "Build Tewi HTTPd Document"
|
---|
4 |
|
---|
5 | on:
|
---|
6 | workflow_dispatch:
|
---|
7 | push:
|
---|
8 |
|
---|
9 | concurrency:
|
---|
10 | group: "doc"
|
---|
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
|
---|
33 | run: sudo apt-get install tcl subversion
|
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.