Add Ryan Garner to V1 authors #19
Workflow file for this run
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 LaTeX document | |
| on: | |
| push: | |
| branches: | |
| master | |
| pull_request: | |
| jobs: | |
| build_latex: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e | |
| - name: Build v1 document | |
| uses: xu-cheng/latex-action@2031f1a94940bfe35904fc1782bf18a9bdafc127 | |
| with: | |
| root_file: main.tex | |
| working_directory: v1/english | |
| pre_compile: | | |
| rm -f augur-whitepaper-v1.pdf | |
| post_compile: | | |
| mv main.pdf augur-whitepaper-v1.pdf | |
| - name: Check v1 file | |
| run: | | |
| file ./v1/english/augur-whitepaper-v1.pdf | grep -q ' PDF ' | |
| - name: Upload v1 file | |
| uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 | |
| with: | |
| name: augur-whitepaper-v1.pdf | |
| if-no-files-found: error | |
| path: ./v1/english/augur-whitepaper-v1.pdf | |
| - name: Build v2 document | |
| uses: xu-cheng/latex-action@2031f1a94940bfe35904fc1782bf18a9bdafc127 | |
| with: | |
| root_file: main.tex | |
| working_directory: v2/english | |
| pre_compile: | | |
| rm -f augur-whitepaper-v2.pdf | |
| post_compile: | | |
| mv main.pdf augur-whitepaper-v2.pdf | |
| - name: Check v2 file | |
| run: | | |
| file ./v2/english/augur-whitepaper-v2.pdf | grep -q ' PDF ' | |
| - name: Upload v2 file | |
| uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 | |
| with: | |
| name: augur-whitepaper-v2.pdf | |
| if-no-files-found: error | |
| path: ./v2/english/augur-whitepaper-v2.pdf | |
| - name: Bump version and push tag | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| id: bump_version | |
| uses: anothrNick/github-tag-action@3840ec22ac98e14d981375e3ae2d8d0392964521 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| WITH_V: true | |
| DEFAULT_BUMP: patch | |
| INITIAL_VERSION: 2.0.0 | |
| - name: Create Release | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| id: create_release | |
| uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ steps.bump_version.outputs.new_tag }} | |
| release_name: ${{ steps.bump_version.outputs.new_tag }} | |
| draft: false | |
| prerelease: false | |
| - name: Upload v1 Release Asset | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| id: upload-v1-release-asset | |
| uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./v1/english/augur-whitepaper-v1.pdf | |
| asset_name: augur-whitepaper-v1.pdf | |
| asset_content_type: application/pdf | |
| - name: Upload v2 Release Asset | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| id: upload-v2-release-asset | |
| uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./v2/english/augur-whitepaper-v2.pdf | |
| asset_name: augur-whitepaper-v2.pdf | |
| asset_content_type: application/pdf |