diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..062c6d3 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,44 @@ +name: Build LaTeX document +on: + push: + tags: + - '*' +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v1 + + - name: Compile LaTeX document + uses: xu-cheng/latex-action@master + with: + root_file: main.tex + + - name: Upload artifact + uses: actions/upload-artifact@v1 + with: + name: main + path: ./main.pdf + + - name: Create release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Version ${{ 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: ./main.pdf + asset_name: main.pdf + asset_content_type: application/pdf diff --git a/analysis_I_cheatsheet.pdf b/analysis_I_cheatsheet.pdf deleted file mode 100644 index 3ff1e0e..0000000 Binary files a/analysis_I_cheatsheet.pdf and /dev/null differ diff --git a/cheatsheet_template/main.pdf b/cheatsheet_template/main.pdf deleted file mode 100644 index ae62fcb..0000000 Binary files a/cheatsheet_template/main.pdf and /dev/null differ diff --git a/cheatsheet_template/main.tex b/main.tex similarity index 100% rename from cheatsheet_template/main.tex rename to main.tex