Skip to content

fix: added hub command installation before deploy #8

fix: added hub command installation before deploy

fix: added hub command installation before deploy #8

Workflow file for this run

name: Build LaTeX and deploy on GitHub Releases
on:
push:
schedule:
- cron: '0 0 1 * *'
jobs:
Build-LaTeX:
runs-on: ubuntu-24.04
steps:
- name: Make ImageMagik permissive
run: sudo sed -i 's/rights=".*"/rights="all"/' /etc/ImageMagick-6/policy.xml
# Checkout the repository
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch tags
shell: bash
run: git fetch --tags -f
- name: Install TeXLive
uses: DanySK/setup-texlive-action@master
- name: Compile LaTeX
uses: DanySK/compile-latex-action@master
- name: Autotag
uses: DanySK/semver-autotag-action@master
- name: Install hub
run: |
sudo apt-get install -y hub
- name: Deploy
if: ${{ startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG=$(git describe --tags --exact-match HEAD)
hub release create -m "$(git tag -l --format='%(contents)' "$TAG")" "$TAG" || true
while IFS= read -r file; do
pdf="${file%.*}.pdf"
echo "Delivering file $pdf"
gh release upload "$TAG" "$pdf" --clobber
done <"success-list"