parent
							
								
									2c660d0958
								
							
						
					
					
						commit
						1cc79ec03f
					
				
					 2 changed files with 21 additions and 15 deletions
				
			
		
							
								
								
									
										21
									
								
								.forgejo/workflows/publish.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								.forgejo/workflows/publish.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
on: [push]
 | 
			
		||||
jobs:
 | 
			
		||||
  test_checkout:
 | 
			
		||||
    runs-on: docker
 | 
			
		||||
    container:
 | 
			
		||||
      image: rust:slim-bookworm
 | 
			
		||||
    steps:
 | 
			
		||||
      - run: apt-get update -y && apt-get install -y nodejs
 | 
			
		||||
      - run: cargo install trunk
 | 
			
		||||
      - uses: https://code.forgejo.org/actions/checkout@v3
 | 
			
		||||
      - run: trunk build --release --public-url '.'
 | 
			
		||||
      - run: |
 | 
			
		||||
          cd dist
 | 
			
		||||
          git init
 | 
			
		||||
          git remote add origin "${GITHUB_REPOSITORY}/{GITHUB_REPOSITORY_OWNER}"
 | 
			
		||||
          TOKEN=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
 | 
			
		||||
          git -c http.extraHeader="Authorization: Basic ${TOKEN}" push origin -d pages
 | 
			
		||||
          git checkout -b pages
 | 
			
		||||
          git add *
 | 
			
		||||
          git commit -m "gen pages"
 | 
			
		||||
          git -c http.extraHeader="Authorization: Basic ${TOKEN}" push -u origin pages
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue