This commit is contained in:
parent
e9bf1ee355
commit
6acccb1d6c
1 changed files with 6 additions and 17 deletions
|
@ -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"
|
Loading…
Add table
Reference in a new issue