-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
# first-action | ||
# Latex Action | ||
|
||
This action prints "Hello World" or "Hello" + the name of a person to greet to the log. | ||
This action compiles latex file using Tectonic, which automatically downloads required dependencies. | ||
More Information about tectonic can be found [here](https://tectonic-typesetting.github.io/en-US/). | ||
|
||
## Inputs | ||
|
||
### `who-to-greet` | ||
### `tex-path` | ||
|
||
**Required** The name of the person to greet. Default `"World"`. | ||
**Required** Path of tex, xtx file to compile. | ||
|
||
## Outputs | ||
|
||
### `time` | ||
|
||
The time we greeted you. | ||
Pushes a Compiled PDF file parallel to the tex, xtx file. | ||
|
||
## Example usage | ||
|
||
uses: actions/hello-world-docker-action@v1 | ||
with: | ||
who-to-greet: 'Mona the Octocat' | ||
``` | ||
on: [push] | ||
jobs: | ||
latex-job: | ||
runs-on: ubuntu-latest | ||
name: A job to Compile Latex file | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Compilation | ||
uses: vinay0410/tectonic-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tex_path: 'dir/file.tex' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters