Update tests.yml
This commit is contained in:
		
							
								
								
									
										41
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										41
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							| @@ -105,11 +105,13 @@ jobs: | |||||||
|           tag_name: ${{ env.version }} |           tag_name: ${{ env.version }} | ||||||
|           files: inkycal_os.img.xz |           files: inkycal_os.img.xz | ||||||
|  |  | ||||||
|   generate-docs: |   generate-and-publish-docs: | ||||||
|     name: Generate Docs |     name: Generate and publish docs | ||||||
|     needs: clone-setup-install |     needs: clone-setup-install | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  |     permissions: | ||||||
|  |       contents: write | ||||||
|  |      | ||||||
|     steps: |     steps: | ||||||
|       - name: Restore Workspace |       - name: Restore Workspace | ||||||
|         uses: actions/download-artifact@v2 |         uses: actions/download-artifact@v2 | ||||||
| @@ -126,36 +128,17 @@ jobs: | |||||||
|           source venv/bin/activate |           source venv/bin/activate | ||||||
|           pip install sphinxemoji sphinx_rtd_theme recommonmark |           pip install sphinxemoji sphinx_rtd_theme recommonmark | ||||||
|           cd docsource |           cd docsource | ||||||
|           make html |           make html && make github && cd .. | ||||||
|  |  | ||||||
|   publish-docs: |  | ||||||
|     name: Publish Docs |  | ||||||
|     needs: generate-docs |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     permissions: |  | ||||||
|       contents: write |  | ||||||
|  |  | ||||||
|     steps: |  | ||||||
|       - name: Restore Workspace |  | ||||||
|         uses: actions/download-artifact@v2 |  | ||||||
|         with: |  | ||||||
|           name: workspace |  | ||||||
|  |  | ||||||
|       - name: Extract Workspace Archive |  | ||||||
|         run: | |  | ||||||
|           tar -xzf workspace.tar.gz |  | ||||||
|  |  | ||||||
|       - name: Publish Docs to Github Pages |  | ||||||
|         run: | |  | ||||||
|           echo "$PWD" |  | ||||||
|           ls |  | ||||||
|           source venv/bin/activate |  | ||||||
|           cd docsource && make html && make github && cd .. |  | ||||||
|           echo "$PWD" |           echo "$PWD" | ||||||
|           ls |           ls | ||||||
|  |            | ||||||
|  |       - name: Publish Docs | ||||||
|  |         run: | | ||||||
|  |           sudo apt-get install python3-sphinx | ||||||
|           git config --global user.name 'GitHub Actions' |           git config --global user.name 'GitHub Actions' | ||||||
|           git config --global user.email 'actions@github.com' |           git config --global user.email 'actions@github.com' | ||||||
|           git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY |           git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | ||||||
|           git add docs |           git add docs | ||||||
|           git commit -m "Update documentation" |           git commit -m "github actions - updated docs" | ||||||
|           git push --force --quiet |           git push --force --quiet | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user