Skip to content

Commit

Permalink
Update latex_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecancio authored Nov 26, 2023
1 parent 64b678d commit 600ced7
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/latex_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build LaTeX document
name: New Release of Latex Document
on: [push]

jobs:
Expand All @@ -7,17 +7,17 @@ jobs:
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex
working_directory: article/
continue_on_error: true
- name: Save PDF as Artifact
uses: actions/upload-artifact@v3
with:
name: main
path: article/main.pdf
# - name: Compile LaTeX document
# uses: xu-cheng/latex-action@v2
# with:
# root_file: main.tex
# working_directory: article/
# continue_on_error: true
# - name: Save PDF as Artifact
# uses: actions/upload-artifact@v3
# with:
# name: main
# path: article/main.pdf
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -28,13 +28,13 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: sekwah41/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: article/main.pdf
asset_name: main.pdf
asset_content_type: application/pdf
# - name: Upload Release Asset
# id: upload-release-asset
# uses: sekwah41/upload-release-assets@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
# asset_path: article/main.pdf
# asset_name: main.pdf
# asset_content_type: application/pdf

0 comments on commit 600ced7

Please sign in to comment.