doc: 添加 TypeScript 文档。
This commit is contained in:
		
							
								
								
									
										27
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
name: Build and Deploy Documents
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
      
 | 
			
		||||
jobs:
 | 
			
		||||
  build-deploy:
 | 
			
		||||
    runs-on: ubuntu-18.04
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@master
 | 
			
		||||
 | 
			
		||||
    - name: Setup Node
 | 
			
		||||
      uses: actions/setup-node@v1
 | 
			
		||||
      with:
 | 
			
		||||
        node-version: 10
 | 
			
		||||
 | 
			
		||||
    - run: npm install
 | 
			
		||||
    - run: npm run build
 | 
			
		||||
    - run: cp ./example/apple-app-site-association ./typedoc
 | 
			
		||||
 | 
			
		||||
    - name: Build and Deploy
 | 
			
		||||
      uses: peaceiris/actions-gh-pages@v2.5.0
 | 
			
		||||
      env:
 | 
			
		||||
        ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
 | 
			
		||||
        PUBLISH_BRANCH: gh-pages
 | 
			
		||||
        PUBLISH_DIR: ./typedoc
 | 
			
		||||
		Reference in New Issue
	
	Block a user