Skip to content

Commit

Permalink
ci: update github action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tunakasif committed Jul 18, 2024
1 parent 50312e4 commit b8ff776
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set Up Git Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Compile LaTeX Document
uses: xu-cheng/latex-action@v2
uses: xu-cheng/latex-action@v3
with:
work_in_root_file_dir: true
root_file: |
src/main.tex
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Make changes to the LaTeX documents, and provide [git-tags](https://git-scm.com/

Automation of LaTeX project build and tag-based releases is achieved with [GitHub Actions](/~https://github.com/features/actions). The workflow configuration is achieved with [`release.yml`](./.github/workflows/release.yml) file. The workflow dependencies are listed as follows:

- [actions/checkout@v2](/~https://github.com/actions/checkout)
- [xu-cheng/latex-action@v2](/~https://github.com/xu-cheng/latex-action)
- [softprops/action-gh-release@v1](/~https://github.com/softprops/action-gh-release)
- [actions/checkout](/~https://github.com/actions/checkout)
- [xu-cheng/latex-action](/~https://github.com/xu-cheng/latex-action)
- [softprops/action-gh-release](/~https://github.com/softprops/action-gh-release)

## LaTeX Document Hierarchy

Expand All @@ -35,6 +35,6 @@ The sample LaTeX document hierarchy is in the form below. It is a minimal demons
└── my_table.tex
```

As expected, building process depends on the document hierarchy. This template is designed for the base case provided in [xu-cheng/latex-action@v2](/~https://github.com/xu-cheng/latex-action) such that we have a single `root_file: main.tex`, and we are compiling with default settings of [xu-cheng/latex-action@v2](/~https://github.com/xu-cheng/latex-action). The provided hierarchy can be changed easily, however [`release.yml`](./.github/workflows/release.yml) needs to be changed, accordingly. Since [xu-cheng/latex-action@v2](/~https://github.com/xu-cheng/latex-action) provides a rich documentation, this aspect should not be problematic.
As expected, building process depends on the document hierarchy. This template is designed for the base case provided in [xu-cheng/latex-action](/~https://github.com/xu-cheng/latex-action) such that we have a single `root_file: main.tex`, and we are compiling with default settings of [xu-cheng/latex-action](/~https://github.com/xu-cheng/latex-action). The provided hierarchy can be changed easily, however [`release.yml`](./.github/workflows/release.yml) needs to be changed, accordingly. Since [xu-cheng/latex-action](/~https://github.com/xu-cheng/latex-action) provides a rich documentation, this aspect should not be problematic.

Finally, the [softprops/action-gh-release@v1](/~https://github.com/softprops/action-gh-release) action creates a release based on the provided tag, and adds the generated `main.pdf` from workspace directory to the assets of release. If a hierarchy change is on the table, then the release aspect of [`release.yml`](./.github/workflows/release.yml) needs to be altered, accordingly.
Finally, the [softprops/action-gh-release](/~https://github.com/softprops/action-gh-release) action creates a release based on the provided tag, and adds the generated `main.pdf` from workspace directory to the assets of release. If a hierarchy change is on the table, then the release aspect of [`release.yml`](./.github/workflows/release.yml) needs to be altered, accordingly.

0 comments on commit b8ff776

Please sign in to comment.