mirror of
				https://github.com/adityatelange/hugo-PaperMod.git
				synced 2025-11-03 18:02:45 +01:00 
			
		
		
		
	Workflows: set HUGO_VERSION to the user value if available, or else default
(cherry picked from commit 08f15e3843)
			
			
This commit is contained in:
		
							
								
								
									
										5
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
								
							@@ -38,11 +38,8 @@ jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    env:
 | 
			
		||||
      HUGO_VERSION: "0.112.4"
 | 
			
		||||
      HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.112.4' }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Check version
 | 
			
		||||
        if: ${{ github.event.inputs.hugoVersion }}
 | 
			
		||||
        run: export HUGO_VERSION="${{ github.event.inputs.hugoVersion }}"
 | 
			
		||||
      - name: Install Hugo CLI
 | 
			
		||||
        run: |
 | 
			
		||||
          wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user