mirror of
				https://github.com/adityatelange/hugo-PaperMod.git
				synced 2025-11-04 02:12:49 +01:00 
			
		
		
		
	Sync GH workflows
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -7,6 +7,11 @@ on:
 | 
				
			|||||||
      - exampleSite
 | 
					      - exampleSite
 | 
				
			||||||
  workflow_dispatch:
 | 
					  workflow_dispatch:
 | 
				
			||||||
    # manual run
 | 
					    # manual run
 | 
				
			||||||
 | 
					    inputs:
 | 
				
			||||||
 | 
					      hugoVersion:
 | 
				
			||||||
 | 
					        description: "Hugo Version"
 | 
				
			||||||
 | 
					        required: false
 | 
				
			||||||
 | 
					        default: "0.83.0"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  build:
 | 
					  build:
 | 
				
			||||||
@@ -26,7 +31,7 @@ jobs:
 | 
				
			|||||||
      - name: Setup hugo
 | 
					      - name: Setup hugo
 | 
				
			||||||
        uses: peaceiris/actions-hugo@v2
 | 
					        uses: peaceiris/actions-hugo@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          hugo-version: 'latest'
 | 
					          hugo-version: "${{ github.event.inputs.hugoVersion }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Build
 | 
					      - name: Build
 | 
				
			||||||
        run: hugo --buildDrafts --gc --verbose --minify
 | 
					        run: hugo --buildDrafts --gc --verbose --minify
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										14
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
								
							@@ -3,13 +3,19 @@ name: Build GH-Pages
 | 
				
			|||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    paths-ignore:
 | 
					    paths-ignore:
 | 
				
			||||||
      - 'images/**'
 | 
					      - "images/**"
 | 
				
			||||||
      - 'LICENSE'
 | 
					      - "LICENSE"
 | 
				
			||||||
      - 'README.md'
 | 
					      - "README.md"
 | 
				
			||||||
    branches:
 | 
					    branches:
 | 
				
			||||||
 | 
					      - master
 | 
				
			||||||
      - exampleSite
 | 
					      - exampleSite
 | 
				
			||||||
  workflow_dispatch:
 | 
					  workflow_dispatch:
 | 
				
			||||||
    # manual run
 | 
					    # manual run
 | 
				
			||||||
 | 
					    inputs:
 | 
				
			||||||
 | 
					      hugoVersion:
 | 
				
			||||||
 | 
					        description: "Hugo Version"
 | 
				
			||||||
 | 
					        required: false
 | 
				
			||||||
 | 
					        default: "0.83.0"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  deploy:
 | 
					  deploy:
 | 
				
			||||||
@@ -29,7 +35,7 @@ jobs:
 | 
				
			|||||||
      - name: Setup hugo
 | 
					      - name: Setup hugo
 | 
				
			||||||
        uses: peaceiris/actions-hugo@v2
 | 
					        uses: peaceiris/actions-hugo@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          hugo-version: 'latest'
 | 
					          hugo-version: "${{ github.event.inputs.hugoVersion }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Build
 | 
					      - name: Build
 | 
				
			||||||
        run: hugo --buildDrafts --gc --verbose --minify
 | 
					        run: hugo --buildDrafts --gc --verbose --minify
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user