Skip to content

Commit

Permalink
add: ci
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Dec 17, 2023
1 parent 41530ab commit 949b30d
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 13 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/build-documents.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build documents

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
id-token: write
pages: write

env:
INSTANCE: sinoseries_document.tree
ARTIFACT: sinoseries-document.zip
DOCKER_VERSION: 233.4797

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}

- name: Upload
uses: actions/upload-artifact@v3
with:
name: docs
path: |
artifacts/${{ env.ARTIFACT }}
retention-days: 7

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

needs: build

runs-on: ubuntu-latest

steps:
- name: Download
uses: actions/download-artifact@v3
with:
name: docs

- name: Unzip
run: unzip -O UTF-8 -qq ${{ env.ARTIFACT }} -d dir

- name: Setup
uses: actions/configure-pages@v2

- name: Upload
uses: actions/upload-pages-artifact@v1
with:
path: dir

- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
1 change: 0 additions & 1 deletion c.list
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
<!DOCTYPE categories
SYSTEM "https://resources.jetbrains.com/writerside/1.0/categories.dtd">
<categories>
<category id="wrs" name="Writerside documentation" order="1"/>
</categories>
8 changes: 0 additions & 8 deletions redirection-rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@
<accepts>page.html</accepts>
</rule>
-->
<rule id="66154270">
<description><![CDATA[Created after removal of "<sinocore-block.md>" from SinoSeries Document]]></description>
<accepts>sinocore-block.html</accepts>
</rule>
<rule id="16693e55">
<description>Created after removal of "Item" from SinoSeries Document</description>
<accepts>sinocore-item.html</accepts>
</rule>
</rules>
2 changes: 1 addition & 1 deletion sinoseries_document.tree
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<instance-profile id="sinoseries_document"
name="SinoSeries Document"
start-page="starter-topic.md">
<toc-element topic="starter-topic.md"/>

<toc-element topic="sinocore.md">
<toc-element topic="sinocore-block.md">
Expand All @@ -18,5 +19,4 @@
</toc-element>
<toc-element topic="sinocore-item.md"/>
</toc-element>
<toc-element topic="starter-topic.md"/>
</instance-profile>
4 changes: 2 additions & 2 deletions v.list
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE vars SYSTEM "https://resources.jetbrains.com/writerside/1.0/vars.dtd">
<vars>
<var name="product" value="Writerside"/>
</vars>
<var name="name" value="SinoSeries"/>
</vars>
3 changes: 2 additions & 1 deletion writerside.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
<ihp version="2.0">
<topics dir="topics" web-path="topics"/>
<images dir="images" web-path="images"/>
<instance src="sinoseries_document.tree" web-path="/sinoseries_document/" version="1.20.1-1.5.1"/>
<categories src="c.list"/>
<instance src="sinoseries_document.tree" web-path="/" version="1.20.1-1.5.1"/>
</ihp>

0 comments on commit 949b30d

Please sign in to comment.