Compare commits
No commits in common. "main" and "v2.2.5" have entirely different histories.
@ -3,24 +3,39 @@ name: Build and Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
schedule:
|
||||
- cron: '@monthly'
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: alpine:latest
|
||||
options: --user root
|
||||
|
||||
steps:
|
||||
- run: apk add --no-cache nodejs nix
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- run: nix-channel --add https://nixos.org/channels/nixos-24.11 nixpkgs && nix-channel --update
|
||||
- run: nix-shell -p biber tectonic --run "tectonic Main.tex"
|
||||
|
||||
- name: Create Release
|
||||
uses: https://github.com/softprops/action-gh-release@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build LaTeX
|
||||
uses: docker://nareshkumarrao/texliveonfly:latest
|
||||
with:
|
||||
files: Main.pdf
|
||||
entrypoint: /bin/sh
|
||||
args: -c "tlmgr update --self --all && texliveonfly Main.tex && biber main && texliveonfly Main.tex && biber main && texliveonfly Main.tex"
|
||||
|
||||
# - name: Create Release
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
# with:
|
||||
# files: Main.pdf
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# - name: Deploy via FTP
|
||||
# uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
# with:
|
||||
# server: nareshkumarrao.com
|
||||
# username: ${{ secrets.FTP_USERNAME }}
|
||||
# password: ${{ secrets.FTP_PASSWORD }}
|
||||
# port: 21
|
||||
# protocol: ftp
|
||||
# local-dir: ./
|
||||
# server-dir: master_thesis/
|
||||
# include: Main.pdf
|
||||
|
Loading…
x
Reference in New Issue
Block a user