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: |
|
run: |
|
||||||
pdflatex main.tex
|
pdflatex main.tex
|
||||||
|
|
||||||
|
# Step 4: Create a new release on Forgejo
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: 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:
|
env:
|
||||||
FORGEJO_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
FORGEJO_TOKEN: ${{ secrets.RELEASE_TOKEN }} # Use your Forgejo token
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }} # Use the tag from the push event
|
||||||
release_name: ${{ github.ref }}
|
release_name: ${{ github.ref }} # Use the same tag name for the release name
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
# Step 5: Upload the compiled PDF as a release asset
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
id: upload_release_asset
|
id: upload_release_asset
|
||||||
uses: actions/forgejo-release@v1
|
run: |
|
||||||
with:
|
curl -XPOST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
tag_name: ${{ github.ref_name }}
|
-F "file=@main.pdf" \
|
||||||
files: "main.pdf"
|
"https://git.leomurca.xyz/api/v1/repos/${{ github.repository }}/releases/${{ steps.create_release.outputs.id }}/assets"
|
||||||
token: ${{ secrets.RELEASE_TOKEN }}
|
|
Loading…
Add table
Reference in a new issue