Refactor release
Some checks failed
Compile LaTeX and Release PDF / build_latex (push) Failing after 53s
Some checks failed
Compile LaTeX and Release PDF / build_latex (push) Failing after 53s
This commit is contained in:
parent
99c4fee590
commit
e9bf1ee355
1 changed files with 10 additions and 9 deletions
|
@ -31,21 +31,22 @@ jobs:
|
|||
run: |
|
||||
pdflatex main.tex
|
||||
|
||||
# Step 4: Create a new release on Forgejo
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/forgejo-release@v1 # Fork of actions/create-release for Forgejo
|
||||
uses: actions/forgejo-release@v1 # Assuming this is a fork of the GitHub action for Forgejo
|
||||
env:
|
||||
FORGEJO_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
FORGEJO_TOKEN: ${{ secrets.RELEASE_TOKEN }} # Use your Forgejo token
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ github.ref }}
|
||||
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
|
||||
|
||||
# Step 5: Upload the compiled PDF as a release asset
|
||||
- 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 }}
|
||||
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"
|
Loading…
Add table
Reference in a new issue