Update folder
Some checks failed
Compile LaTeX and Release PDF / build_latex (push) Failing after 52s
Some checks failed
Compile LaTeX and Release PDF / build_latex (push) Failing after 52s
This commit is contained in:
parent
b865ddcea3
commit
b5e61a9cc3
1 changed files with 8 additions and 3 deletions
|
@ -26,23 +26,28 @@ jobs:
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended
|
apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended
|
||||||
|
|
||||||
|
# Step 3: Create build directory
|
||||||
|
- name: Create dist directory
|
||||||
|
run: |
|
||||||
|
mkdir -p dist
|
||||||
|
|
||||||
# Step 3: Compile the LaTeX document (replace 'document.tex' with your actual file name)
|
# Step 3: Compile the LaTeX document (replace 'document.tex' with your actual file name)
|
||||||
- name: Compile LaTeX document
|
- name: Compile LaTeX document
|
||||||
run: |
|
run: |
|
||||||
pdflatex main.tex
|
pdflatex -output-directory=build main.tex # Output PDF to 'build' folder
|
||||||
|
|
||||||
# Step 4: Upload the compiled PDF as a release asset
|
# Step 4: Upload the compiled PDF as a release asset
|
||||||
- name: Upload PDF to Release
|
- name: Upload PDF to Release
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: main.pdf # The file to upload as the release asset
|
name: main.pdf # The file to upload as the release asset
|
||||||
path: main.pdf # Path to the compiled PDF
|
path: dist/main.pdf # Path to the compiled PDF
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: actions/forgejo-release@v2
|
uses: actions/forgejo-release@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.RELEASE_TOKEN }}
|
token: ${{ secrets.RELEASE_TOKEN }}
|
||||||
release-dir: /
|
release-dir: dist
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://git.leomurca.xyz
|
url: https://git.leomurca.xyz
|
||||||
repo: leomurca/resume
|
repo: leomurca/resume
|
||||||
|
|
Loading…
Add table
Reference in a new issue