mirror of
				https://github.com/yummy4friends/y4f.git
				synced 2025-10-31 13:37:56 +01:00 
			
		
		
		
	Create main.yml
This commit is contained in:
		
							
								
								
									
										25
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| name: Deploy blazor to GitHub Pages | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: [ "dev" ] | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|  | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|     - uses: actions/checkout@v3 | ||||
|     - name: Setup .NET | ||||
|       uses: actions/setup-dotnet@v3 | ||||
|       with: | ||||
|         dotnet-version: 7.0 | ||||
|     - name: Publish | ||||
|       run: dotnet publish --configuration Release -o release --nologo --runtime linux-x64 --self-contained src/y4f/y4f.csproj | ||||
|     - name: Commit wwwroot to GitHub Pages | ||||
|       uses: JamesIves/github-pages-deploy-action@v4 | ||||
|       with: | ||||
|         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         BRANCH: gh-pages | ||||
|         FOLDER: release/wwwroot | ||||
		Reference in New Issue
	
	Block a user