Skip to content

Merge pull request #13 from rugk/dependabot/github_actions/dot-github… #13

Merge pull request #13 from rugk/dependabot/github_actions/dot-github…

Merge pull request #13 from rugk/dependabot/github_actions/dot-github… #13

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: stable-ci
# Controls when the action will run.
on:
push:
branches: 'main'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Use example sender file
run: mv "sender/me-agency.lco.example" "sender/me-agency.lco"
- name: LaTeX compilation
uses: dante-ev/latex-action@latest
with:
# The root LaTeX file to be compiled
root_file: ifg-letter-appeal.tex
# The working directory for the latex compiler to be invoked
working_directory: . # optional
# LaTeX engine to be used
#compiler: lualatex # optional, default is latexmk
# Extra arguments to be passed to the latex compiler
args: -lualatex -latexoption=-file-line-error -latexoption=-interaction=nonstopmode # optional, default is -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode
# Install extra packages by apt-get
#extra_system_packages: # optional
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
# Artifact name
name: PDF # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: "*.pdf"
# The desired behavior if no files are found using the provided path.
if-no-files-found: error # optional, default is warn
# create screenshots
screenshots:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: [build]
env:
SCREENSHOT_DIR: "./screenshots"
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# get compiled PDF
- uses: actions/download-artifact@v4.1.7
with:
name: PDF
# convert PDF to screenshot
# https://askubuntu.com/a/50180/606016
- name: Generate screenshots
run: |
sudo apt-get -y install poppler-utils
mkdir -p "$SCREENSHOT_DIR"
pdftoppm *.pdf "$SCREENSHOT_DIR/template-page" -png
- name: Add & Commit
# You may pin to the exact commit or the version.
# uses: EndBug/add-and-commit@b3c7c1e078a023d75fb0bd326e02962575ce0519
uses: EndBug/add-and-commit@v7
with:
# Arguments for the git add command
add: "${{ env.SCREENSHOT_DIR }}/" # optional, default is .
# The name of the user that will be displayed as the author of the commit
author_name: github-actions[bot] # optional, default is ${{ github.actor }}
# The email of the user that will be displayed as the author of the commit
author_email: 41898282+github-actions[bot]@users.noreply.github.com # optional, default is ${{ github.actor }}@users.noreply.github.com
# Name of the branch to use, if different from the one that triggered the workflow
#branch: # optional
# The directory where your repository is located. You should use actions/checkout first to set it up
#cwd: # optional, default is .
# The message for the commit
message: "chore: update example screenshots" # optional
# The flag used on the pull strategy
#pull_strategy: # optional, default is --no-rebase
# Whether to push the commit and, if any, its tags to the repo. It can also be used to set the git push arguments (more info in the README)
#push: # optional, default is true
# Arguments for the git rm command
#remove: # optional
# Whether to use the --signoff option on git commit
#signoff: # optional
# Arguments for the git tag command (the tag name always needs to be the first word not preceded by a hyphen)
#tag: # optional