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 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)
|
||||
- name: Compile LaTeX document
|
||||
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
|
||||
- name: Upload PDF to Release
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
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
|
||||
uses: actions/forgejo-release@v2
|
||||
with:
|
||||
token: ${{ secrets.RELEASE_TOKEN }}
|
||||
release-dir: /
|
||||
release-dir: dist
|
||||
direction: upload
|
||||
url: https://git.leomurca.xyz
|
||||
repo: leomurca/resume
|
||||
|
|
Loading…
Add table
Reference in a new issue