update
This commit is contained in:
		
							
								
								
									
										35
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
name: github pages
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
    - src
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build-deploy:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - name: Setup Hugo
 | 
			
		||||
      uses: peaceiris/actions-hugo@v2
 | 
			
		||||
      with:
 | 
			
		||||
        hugo-version: 0.89.4
 | 
			
		||||
        # extended: true
 | 
			
		||||
 | 
			
		||||
    - name: Build
 | 
			
		||||
      env: 
 | 
			
		||||
        TZ: "Asia/Tokyo"
 | 
			
		||||
      run: |
 | 
			
		||||
           hugo version
 | 
			
		||||
           TZ=Asia/Tokyo hugo
 | 
			
		||||
           touch ./public/.nojekyll
 | 
			
		||||
           cp ./CNAME ./public/
 | 
			
		||||
 | 
			
		||||
    - name: Deploy
 | 
			
		||||
      uses: peaceiris/actions-gh-pages@v3
 | 
			
		||||
      with:
 | 
			
		||||
        github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
        publish_dir: ./public
 | 
			
		||||
        publish_branch: main
 | 
			
		||||
        user_name: 'ai[bot]'
 | 
			
		||||
        user_email: '138105980+yui-syui-ai[bot]@users.noreply.github.com'
 | 
			
		||||
		Reference in New Issue
	
	Block a user