Skip to content

Commit a2889b1

Browse files
committed
deploy to gh pages
1 parent 1148d6e commit a2889b1

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/paper.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,31 @@ jobs:
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+

0 commit comments

Comments
 (0)