commit eb1ede9b59be009fe42ac0bcf74f0c0349df74e3 parent 7359f19812f4c9a1e4728ac1ad13df8da08f8fdf Author: minerva-jupiter <ryouturn@gmail.com> Date: Tue, 22 Apr 2025 19:11:30 +0900 create pushBuild Diffstat:
| A | .github/workflows/PushBuild.yaml | | | 32 | ++++++++++++++++++++++++++++++++ |
1 file changed, 32 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/PushBuild.yaml b/.github/workflows/PushBuild.yaml @@ -0,0 +1,31 @@ +name: compile LaTeX when PR update + +on: + push: + branches-ignore: + - NotBuild + + +jobs: + PRbuild: + name: PushBuild + runs-on: self-hosted + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: compile latex document + uses: ./.github/actions + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload PDF artifact + id: artifact-upload-step + uses: actions/upload-artifact@v4 + with: + name: main + path: ./main.pdf + retention-days: 7 + - name: Add comment to PR + run: | + gh pr comment ${{ github.event.number }} -b "${{ steps.artifact-upload-step.outputs.artifact-url }}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ \ No newline at end of file