mirror of
				https://github.com/TeamPiped/documentation.git
				synced 2024-08-14 23:50:09 +00:00 
			
		
		
		
	Build and publish to IPFS.
This commit is contained in:
		
							parent
							
								
									5e6ab2a13b
								
							
						
					
					
						commit
						88db5b2139
					
				
					 1 changed files with 28 additions and 0 deletions
				
			
		
							
								
								
									
										28
									
								
								.github/actions/build.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/actions/build.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,28 @@
 | 
				
			||||||
 | 
					name: Build and Deploy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    paths-ignore:
 | 
				
			||||||
 | 
					      - "**.md"
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					      - main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  build:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					      - name: Setup Hugo
 | 
				
			||||||
 | 
					        uses: peaceiris/actions-hugo@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          extended: true
 | 
				
			||||||
 | 
					      - run: hugo --minify
 | 
				
			||||||
 | 
					      - uses: aquiladev/ipfs-action@v0.1.5
 | 
				
			||||||
 | 
					        id: ipfs-add
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          path: ./public
 | 
				
			||||||
 | 
					          service: infura
 | 
				
			||||||
 | 
					      - name: Update DNSLink
 | 
				
			||||||
 | 
					        run: npx dnslink-cloudflare -d kavin.rocks -l /ipfs/${{ steps.ipfs-add.outputs.hash }} -r _dnslink.piped-docs
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          CF_API_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue