diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8f44728 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Build LaTeX document +on: [push] +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: Compile LaTeX document + uses: dante-ev/latex-action@latest + with: + root_file: WenegratGroupExpectations.tex + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: v0.1-${{ github.run_number }} + release_name: Automated build v0.1-${{ github.run_number }} + 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: ./WenegratGroupExpectations.pdf + asset_name: WenegratGroupExpectations.pdf + asset_content_type: pdf diff --git a/WenegratGroupExpectations.pdf b/WenegratGroupExpectations.pdf deleted file mode 100644 index 2d0c8ef..0000000 Binary files a/WenegratGroupExpectations.pdf and /dev/null differ diff --git a/WenegratGroupExpectations.tex b/WenegratGroupExpectations.tex index c58f78f..931b149 100644 --- a/WenegratGroupExpectations.tex +++ b/WenegratGroupExpectations.tex @@ -23,7 +23,7 @@ \fancypagestyle{alim}{\fancyfoot[L]{\textit{Parts of this document are adapted (or directly borrowed) from similar documents written by Dan Chavas (Purdue), Morgan O'Neill (Stanford), , Alison Nugent (UH Manoa), and Leif Thomas (Stanford).}}} \begin{document} - \rhead{Wenegrat group expectations document, updated 2022-04-01} + \rhead{Wenegrat group expectations document, updated \today} %\maketitle %\thispagestyle{alim}