Update release file
Some checks failed
Compile LaTeX and Release PDF / build_latex (push) Failing after 10s
Some checks failed
Compile LaTeX and Release PDF / build_latex (push) Failing after 10s
This commit is contained in:
parent
b1f6bbf6a4
commit
1a83201e52
1 changed files with 15 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
name: Compile Latex and Release PDF
|
||||
name: Compile LaTeX and Release PDF
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -7,13 +7,15 @@ on:
|
|||
|
||||
jobs:
|
||||
build_latex:
|
||||
runs-on: docker
|
||||
runs-on: [docker] # Use your Forgejo runner with the 'docker' label
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Set up Git repository
|
||||
uses: forgejo/checkout@v3
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.RELEASE_TOKEN }} # Use RELEASE_TOKEN instead of GITHUB_TOKEN
|
||||
|
||||
- name: Compile LaTeX document
|
||||
uses: xu-cheng/latex-action@v3
|
||||
|
@ -22,22 +24,22 @@ jobs:
|
|||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: act10ns/forgejo-release@v1
|
||||
uses: varunsridharan/action-forgejo-release@v1 # Fork of actions/create-release for Forgejo
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
FORGEJO_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
with:
|
||||
tag: ${{ github.ref_name }}
|
||||
name: ${{ github.ref_name }}
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ github.ref }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: act10ns/forgejo-release@v1
|
||||
uses: varunsridharan/action-forgejo-upload-release-asset@v1 # Fork of upload-release-asset for Forgejo
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
RELEASEO_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
with:
|
||||
tag: ${{ github.ref_name }}
|
||||
file: ./main.pdf
|
||||
filename: leonardo-murca-resume-${{ github.ref_name }}.pdf
|
||||
content-type: application/pdf
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./main.pdf
|
||||
asset_name: leonardo-murca-resume-${{ github.ref_name }}.pdf
|
||||
asset_content_type: application/pdf
|
Loading…
Add table
Reference in a new issue