Skip to content

Commit

Permalink
fix: main -> release
Browse files Browse the repository at this point in the history
  • Loading branch information
iwishiwasaneagle committed Jan 23, 2024
1 parent 2672341 commit 89499f6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,22 @@ jobs:
- uses: xu-cheng/latex-action@v3
name: "Compile document 1/2"
with:
root_file: main.tex
root_file: release.tex
args: -synctex=1 -interaction=nonstopmode -file-line-error -pdf

- uses: xu-cheng/latex-action@v3
name: "Compile document 2/2"
with:
root_file: main.tex
root_file: progress.tex
args: -synctex=1 -interaction=nonstopmode -file-line-error -pdf
pre_compile: "bibtex main; makeindex main.nlo -s nomencl.ist -o main.nls"
pre_compile: "bibtex release"
post_compile: "latexmk -c"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: main-pdf-release
path: ./main.pdf
name: release-pdf-release
path: ./release.pdf

publish-github:
name: Publish on GitHub
Expand All @@ -122,16 +122,16 @@ jobs:
id: download
uses: actions/download-artifact@v4
with:
name: main-pdf-release
path: main-pdf-release
name: release-pdf-release
path: release-pdf-release

- name: Upload the release
if: ${{ !env.ACT }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.create-tag.outputs.tag }}
file: ${{steps.download.outputs.download-path}}/main.pdf
file: ${{steps.download.outputs.download-path}}/release.pdf
asset_name: $tag.pdf
release_name: "${{ needs.create-tag.outputs.tag }}"
body: "${{ needs.setup-envs.outputs.release_body }}"

0 comments on commit 89499f6

Please sign in to comment.