testing
Some checks failed
Compile LaTeX and Release PDF / build_latex (push) Failing after 54s

This commit is contained in:
Leonardo Murça 2025-03-06 23:17:54 -03:00
parent e9bf1ee355
commit 6acccb1d6c

View file

@ -31,22 +31,11 @@ jobs:
run: |
pdflatex main.tex
# Step 4: Create a new release on Forgejo
- name: Create Release
id: create_release
uses: actions/forgejo-release@v1 # Assuming this is a fork of the GitHub action for Forgejo
env:
FORGEJO_TOKEN: ${{ secrets.RELEASE_TOKEN }} # Use your Forgejo token
- name: Create release
uses: actions/forgejo-release@v2
with:
tag_name: ${{ github.ref }} # Use the tag from the push event
release_name: ${{ github.ref }} # Use the same tag name for the release name
draft: false
prerelease: false
direction: upload
url: https://git.leomurca.xyz
release-dir: /
release-notes: "MY RELEASE NOTES"
# Step 5: Upload the compiled PDF as a release asset
- name: Upload Release Asset
id: upload_release_asset
run: |
curl -XPOST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-F "file=@main.pdf" \
"https://git.leomurca.xyz/api/v1/repos/${{ github.repository }}/releases/${{ steps.create_release.outputs.id }}/assets"