This commit is contained in:
parent
e9bf1ee355
commit
6acccb1d6c
1 changed files with 6 additions and 17 deletions
|
@ -31,22 +31,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pdflatex main.tex
|
pdflatex main.tex
|
||||||
|
|
||||||
# Step 4: Create a new release on Forgejo
|
- name: Create release
|
||||||
- name: Create Release
|
uses: actions/forgejo-release@v2
|
||||||
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
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }} # Use the tag from the push event
|
direction: upload
|
||||||
release_name: ${{ github.ref }} # Use the same tag name for the release name
|
url: https://git.leomurca.xyz
|
||||||
draft: false
|
release-dir: /
|
||||||
prerelease: false
|
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"
|
|
Loading…
Add table
Reference in a new issue