This commit is contained in:
		
							
								
								
									
										29
									
								
								.gitea/workflows/compile.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								.gitea/workflows/compile.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
name: build pdf
 | 
			
		||||
on: [push,watch]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: macos  # use label
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Check out the repository
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: Compile LaTeX using local TeX Live
 | 
			
		||||
        # These commands run directly in your machine's shell
 | 
			
		||||
        run: |
 | 
			
		||||
          echo "Compiling document..."
 | 
			
		||||
          latexmk -pdf main.tex
 | 
			
		||||
      
 | 
			
		||||
      - name: List files in the workspace
 | 
			
		||||
        run: ls -l
 | 
			
		||||
 | 
			
		||||
      - uses: akkuman/gitea-release-action@v1
 | 
			
		||||
        with:
 | 
			
		||||
          body: ''
 | 
			
		||||
          prerelease: true
 | 
			
		||||
          name: PDF
 | 
			
		||||
          token: ${{ secrets.RELEASE_TOKEN }}
 | 
			
		||||
          tag_name: latest
 | 
			
		||||
          files: |-
 | 
			
		||||
            ./*.pdf
 | 
			
		||||
		Reference in New Issue
	
	Block a user