Skip to content

Commit

Permalink
update(readme): add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay0410 committed Oct 25, 2019
1 parent a2c3d05 commit 7c4d57b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
# 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 files using [Tectonic](https://tectonic-typesetting.github.io/en-US/), which automatically downloads necessary dependencies, and compiles to pdf.

## 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'
```
11 changes: 7 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# action.yml
name: 'Latex Compile'
description: 'Compile Latex Files'
name: 'Compile LateX'
description: 'Compile Latex files easily !'
branding:
icon: file-text
color: blue
inputs:
tex-path: # id of input
tex_path: # id of input
description: 'Path of Tex File'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.tex-path }}
- ${{ inputs.tex_path }}

0 comments on commit 7c4d57b

Please sign in to comment.