Skip to content

Build Docset

Build Docset #11

Workflow file for this run

name: Build Docset
on: workflow_dispatch
jobs:
build:
name: Build Docset
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '>=1.4'
- name: Checkout
uses: actions/checkout@v3
- name: Checkout Docs(EN)
uses: actions/checkout@v3
with:
repository: AutoHotkey/AutoHotkeyDocs
ref: v2
path: doc2en
- name: Checkout Docs(ZH)
uses: actions/checkout@v3
with:
repository: wyagd001/wyagd001.github.io
ref: master
path: doc2zh
- name: Install Dashing
run: |
go version
go install github.com/technosophos/dashing@latest
- name: Build Docset(EN)
run: |
cp ${{ github.workspace }}/dashing.json ./dashing.json
cp ${{ github.workspace }}/icons.png ./icons.png
dashing build
rm ./AutoHotkey2.docset/Contents/Resources/Documents/icons.png
working-directory: doc2en/docs
- name: Compress Docset(EN)
uses: TheDoctor0/[email protected]
with:
type: 'tar'
filename: 'AutoHotkey2-en_us.tgz'
directory: ${{ github.workspace }}/doc2en/docs
path: AutoHotkey2.docset
- name: Build Docset(ZH)
run: |
cp ${{ github.workspace }}/dashing.json ./dashing.json
cp ${{ github.workspace }}/icons.png ./icons.png
dashing build
rm ./AutoHotkey2.docset/Contents/Resources/Documents/icons.png
working-directory: doc2zh/v2/docs
- name: Compress Docset(ZH)
uses: TheDoctor0/[email protected]
with:
type: 'tar'
filename: 'AutoHotkey2-zh_cn.tgz'
directory: ${{ github.workspace }}/doc2zh/v2/docs
path: AutoHotkey2.docset
- name: Move Compress
run: |
mkdir ${{ github.workspace }}/output
mv ./doc2en/docs/*tgz ./output/
mv ./doc2zh/v2/docs/*.tgz ./output/
- name: Upload Artifact
uses: actions/[email protected]
with:
name: Artifact
path: ${{ github.workspace }}/output/*