Some checks failed
Compile LaTeX and Release PDF / build_latex (push) Failing after 51s
51 lines
No EOL
1.4 KiB
YAML
51 lines
No EOL
1.4 KiB
YAML
name: Compile LaTeX and Release PDF
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build_latex:
|
|
runs-on: [docker] # Use your Forgejo runner with the 'docker' label
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
services:
|
|
docker:
|
|
image: docker:19.03.12-dind
|
|
options: --privileged
|
|
steps:
|
|
- name: Set up Git repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
token: ${{ secrets.RELEASE_TOKEN }} # Use RELEASE_TOKEN instead of GITHUB_TOKEN
|
|
|
|
- name: Install LaTeX
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended
|
|
|
|
# Step 3: Compile the LaTeX document (replace 'document.tex' with your actual file name)
|
|
- name: Compile LaTeX document
|
|
run: |
|
|
pdflatex main.tex
|
|
|
|
- name: Create Release
|
|
id: create_release
|
|
uses: actions/forgejo-release@v1 # Fork of actions/create-release for Forgejo
|
|
env:
|
|
FORGEJO_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
with:
|
|
tag_name: ${{ github.ref }}
|
|
release_name: ${{ github.ref }}
|
|
draft: false
|
|
prerelease: false
|
|
|
|
- name: Upload Release Asset
|
|
id: upload_release_asset
|
|
uses: actions/forgejo-release@v1
|
|
with:
|
|
tag_name: ${{ github.ref_name }}
|
|
files: "main.pdf"
|
|
token: ${{ secrets.RELEASE_TOKEN }} |