Skip to content

Install texlive in CI. #13

Install texlive in CI.

Install texlive in CI. #13

Workflow file for this run

name: Build distribution
on:
push:
branches: [ main ]
tags: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: teatimeguest/setup-texlive-action@v3
with:
packages: |
scheme-basic
texliveonfly
- name: Fetch git tags.
run: git fetch --prune --unshallow --tags
- run: ./build.sh ci
- uses: actions/upload-artifact@v4
with:
name: dist-packages
path: build/dist/*
publishArtifacts:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Fetch git tags.
run: git fetch --prune --unshallow --tags
- name: Get version as Github variable.
run: 'echo "VERSION_STR=ci_draft-$GITHUB_RUN_NUMBER" >> $GITHUB_ENV'
- uses: actions/download-artifact@v4
with:
name: dist-packages
path: artifacts
- uses: rickstaa/action-create-tag@v1
with:
tag: ${{ env.VERSION_STR }}
message: CI release ${{ env.VERSION_STR }}
- uses: softprops/action-gh-release@v2
with:
name: ${{ env.VERSION_STR }}
tag_name: ${{ env.VERSION_STR }}
body: |
CI Build ${{ env.VERSION_STR }}
This is an development draft release. Expect that anything may change without notice, and that things may make zero sense.
prerelease: true
files: artifacts/**
fail_on_unmatched_files: true
generate_release_notes: true