mirror of
				https://github.com/InsanusMokrassar/docs.git
				synced 2025-11-03 21:52:42 +00:00 
			
		
		
		
	fix in github workflows
fix in github workflows fix in github workflows
This commit is contained in:
		
							
								
								
									
										43
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										43
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
								
							@@ -2,26 +2,27 @@ name: Build and publish
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
    push:
 | 
			
		||||
        branch:
 | 
			
		||||
        branches:
 | 
			
		||||
            - master
 | 
			
		||||
 | 
			
		||||
runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
    - uses: actions/checkout@v3
 | 
			
		||||
    - name: Setup Python
 | 
			
		||||
      uses: actions/setup-python@v4
 | 
			
		||||
      with:
 | 
			
		||||
        python-version: '3.10'
 | 
			
		||||
    - name: Install dependencies
 | 
			
		||||
      run: |
 | 
			
		||||
        python -m pip install --upgrade pip
 | 
			
		||||
        pip install mkdocs markdown-callouts mkdocs-autorefs mkdocs-include-dir-to-nav mkdocs-material
 | 
			
		||||
    - name: Build
 | 
			
		||||
      run: mkdocs build
 | 
			
		||||
    - name: Publish
 | 
			
		||||
      uses: peaceiris/actions-gh-pages@v3
 | 
			
		||||
      with:
 | 
			
		||||
        github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
        publish_dir: ./site
 | 
			
		||||
        publish_branch: site
 | 
			
		||||
jobs:
 | 
			
		||||
  publishing:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v3
 | 
			
		||||
      - name: Setup Python
 | 
			
		||||
        uses: actions/setup-python@v4
 | 
			
		||||
        with:
 | 
			
		||||
          python-version: '3.10'
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        run: |
 | 
			
		||||
          python -m pip install --upgrade pip
 | 
			
		||||
          pip install mkdocs markdown-callouts mkdocs-autorefs mkdocs-include-dir-to-nav mkdocs-material
 | 
			
		||||
      - name: Build
 | 
			
		||||
        run: mkdocs build
 | 
			
		||||
      - name: Publish
 | 
			
		||||
        uses: peaceiris/actions-gh-pages@v3
 | 
			
		||||
        with:
 | 
			
		||||
          github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
          publish_dir: ./site
 | 
			
		||||
          publish_branch: site
 | 
			
		||||
		Reference in New Issue
	
	Block a user