-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:HatefulT/mathstat_lections
- Loading branch information
Showing
5 changed files
with
195 additions
and
113 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build LaTeX document | ||
on: [push] | ||
permissions: | ||
contents: write | ||
discussions: write | ||
jobs: | ||
build_latex: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v3 | ||
- name: Compile LaTeX document | ||
uses: xu-cheng/latex-action@v3 | ||
with: | ||
root_file: konspect.tex | ||
extra_system_packages: "inkscape" | ||
args: -f -jobname=konspect -pdf -file-line-error -shell-escape -interaction=nonstopmode -synctex=1 | ||
- name: Upload PDF file | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: PDF | ||
path: konspect.pdf | ||
# - name: Create Release | ||
# id: create_release | ||
# uses: actions/create-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
# with: | ||
# tag_name: ${{ github.ref }} | ||
# release_name: Build ${{ github.ref }} | ||
# body: | | ||
# New build | ||
# draft: false | ||
# prerelease: false | ||
# # Прикладываемые файлы надо заливать отдельным step | ||
# - name: Upload pdf asset | ||
# uses: actions/upload-release-asset@v1 | ||
# env: | ||
# # Тоже требуется токен | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# # Из предыдущего step с id=create_release генерится upload_url — по нему и надо заливать | ||
# upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
# # Не переходим в папку latex_sources, поскольку download-artifacts грузит в текущую директорию | ||
# asset_path: ./document.pdf | ||
# # Имя, которое будет высвечиваться в релизе | ||
# asset_name: document.pdf | ||
# asset_content_type: application/pdf | ||
- name: Release with Notes | ||
uses: softprops/action-gh-release@v1 | ||
if: always() | ||
with: | ||
name: Build | ||
body: build | ||
tag_name: pdf | ||
files: | | ||
konspect.pdf | ||
# - name: Publish HTML to GitHub Pages | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# if: always() | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# publish_dir: / |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.