File tree Expand file tree Collapse file tree 1 file changed +27
-4
lines changed
Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Original file line number Diff line number Diff line change 2424 - uses : xu-cheng/latex-action@v3
2525 with :
2626 root_file : paper.tex
27-
28- - uses : actions/upload-artifact@v3
27+ - name : move
28+ run : mkdir -p github_artifacts && mv ${{ env.DIR }}/*.pdf ./github_artifacts/
29+ - name : Upload pdf as artifact
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : PDF files
33+ path : ./github_artifacts
34+ deploy :
35+ needs : [build]
36+ permissions :
37+ contents : write
38+ runs-on : ubuntu-latest
39+ steps :
40+ - name : Checkout
41+ uses : actions/checkout@v4
42+ - uses : actions/download-artifact@v4
43+ with :
44+ path : github_artifacts
45+ - name : move
46+ run : mkdir -p github_deploy && mv github_artifacts/*/* github_deploy
47+ - name : deploy on orphan branch
48+ uses : peaceiris/actions-gh-pages@v4
2949 with :
30- name : Paper PDF
31- path : paper.pdf
50+ github_token : ${{ secrets.GITHUB_TOKEN }}
51+ publish_dir : ./github_deploy
52+ publish_branch : build
53+ force_orphan : true
54+
You can’t perform that action at this time.
0 commit comments