resume/.forgejo/workflows/release.yml
Leonardo Murça 7833826743
Some checks failed
Compile LaTeX and Release PDF / build_latex (push) Failing after 3s
Update upload artifact
2025-03-06 20:11:22 -03:00

45 lines
No EOL
1.3 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
steps:
- name: Set up Git repository
uses: actions/checkout@v3
with:
token: ${{ secrets.RELEASE_TOKEN }} # Use RELEASE_TOKEN instead of GITHUB_TOKEN
- name: Compile LaTeX document
uses: https://git.leomurca.xyz/leomurca/latex-action@v3
with:
root_file: 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: acitons/actions/upload-artifact@v3
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./main.pdf
asset_name: leonardo-murca-resume-${{ github.ref_name }}.pdf
asset_content_type: application/pdf