fix gh-actions
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
								
							| @@ -4,15 +4,10 @@ on: | ||||
|   push: | ||||
|     branches: | ||||
|     - main | ||||
|   pull_request: | ||||
|     branches: | ||||
|     - main | ||||
|     types: [closed] | ||||
|  | ||||
| jobs: | ||||
|   build-deploy: | ||||
|     runs-on: ubuntu-latest | ||||
|     if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) | ||||
|     steps: | ||||
|     - uses: actions/checkout@v4 | ||||
|       with: | ||||
| @@ -31,7 +26,7 @@ jobs: | ||||
|            npm run build | ||||
|  | ||||
|     - name: Deploy | ||||
|       uses: peaceiris/actions-gh-pages@v3 | ||||
|       uses: peaceiris/actions-gh-pages@v4 | ||||
|       with: | ||||
|         github_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|         publish_dir: ./dist | ||||
|   | ||||
		Reference in New Issue
	
	Block a user