Compare commits
No commits in common. "main" and "v2.2.4" have entirely different histories.
@ -3,24 +3,56 @@ name: Build and Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- "*"
|
||||||
schedule:
|
|
||||||
- cron: '@monthly'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: alpine:latest
|
|
||||||
options: --user root
|
|
||||||
steps:
|
steps:
|
||||||
- run: apk add --no-cache nodejs nix
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Build LaTeX
|
||||||
uses: https://github.com/softprops/action-gh-release@v2
|
uses: docker://nareshkumarrao/texliveonfly:latest
|
||||||
with:
|
with:
|
||||||
files: Main.pdf
|
run: |
|
||||||
|
tlmgr update --self --all
|
||||||
|
texliveonfly Main.tex
|
||||||
|
biber main
|
||||||
|
texliveonfly Main.tex
|
||||||
|
biber main
|
||||||
|
texliveonfly Main.tex
|
||||||
|
|
||||||
|
# - name: Create Release
|
||||||
|
# id: create_release
|
||||||
|
# uses: actions/create-release@v1
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# with:
|
||||||
|
# tag_name: ${{ github.ref }}
|
||||||
|
# release_name: Release ${{ github.ref }}
|
||||||
|
# draft: false
|
||||||
|
# prerelease: false
|
||||||
|
|
||||||
|
# - name: Upload PDF to Release
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# - name: Upload to FTP
|
||||||
|
# uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
||||||
|
# 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