diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index d952982..3a552bc 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -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