diff --git a/.github/workflows/build-pdfs.yml b/.github/workflows/build-pdfs.yml new file mode 100644 index 0000000..afd9f10 --- /dev/null +++ b/.github/workflows/build-pdfs.yml @@ -0,0 +1,20 @@ +name: Build PDFs with hometasks +on: [push] +jobs: + Build-PDFs: + runs-on: ubuntu-latest + steps: + - run: sudo apt-get update + - run: sudo apt-get install -y --no-install-recommends texlive-full pandoc zip python-pygments dot2tex + - name: Clone the repository + uses: actions/checkout@v3 + - run: make pdf || true + - run: zip -r pdfs.zip build/ + - name: Release latest archive on GitHub + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Latest build" + files: pdfs.zip diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d8a891b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -sudo: required -dist: bionic -language: generic -before_install: -- sudo apt update -- sudo apt install -y --no-install-recommends texlive-fonts-recommended texlive-generic-recommended - texlive-latex-extra texlive-fonts-extra dvipng texlive-latex-recommended texlive-base - texlive-pictures texlive-lang-cyrillic texlive-science texlive-generic-extra pandoc - zip python-pygments dot2tex -script: -- make pdf || true -- zip -r pdfs.zip build/ -deploy: - edge: true - provider: releases - file: pdfs.zip - skip_cleanup: true - on: - tags: true - repo: SeTSeR/Hometask