Created
December 3, 2020 23:13
-
-
Save BelegCuthalion/521416f8a708b7066cc56919b7d41139 to your computer and use it in GitHub Desktop.
CI for Latex
This file contains hidden or 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
| name: build-v-tags | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| latex-job: | |
| runs-on: ubuntu-latest | |
| name: Latex Job | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Compile | |
| uses: vinay0410/tectonic-action@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tex_path: 'latex/root.tex' | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: ${{ github.ref }} | |
| draft: false | |
| prerelease: false | |
| - name: Upload Release Asset | |
| id: upload-release-asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: latex/root.pdf | |
| asset_name: output.pdf | |
| asset_content_type: application/pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment