CI: build zshrefcard #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-build | |
on: | |
pull_request: | |
push: | |
concurrency: | |
group: "${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
build-debian: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Update changelog" | |
run: | | |
set -ex | |
OLD_VERSION=$(dpkg-parsechangelog -SVersion) | |
SOURCE=$(dpkg-parsechangelog -SSource) | |
cat > debian/changelog <<EOT | |
${SOURCE} (${OLD_VERSION}+autobuild${GITHUB_RUN_NUMBER}) UNRELEASED; urgency=medium | |
* Automated Build | |
-- Automated Build <builder@localhost> $(date -R) | |
EOT | |
- uses: jtdor/build-deb-action@v1 | |
- name: Archive build result | |
uses: actions/upload-artifact@v4 | |
with: | |
name: deb | |
if-no-files-found: error | |
path: | | |
debian/artifacts/* | |
zshrefcard: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
set -ex | |
git clone --depth 1 https://github.com/grml/grml-gen-zshrefcard | |
sudo apt update | |
sudo apt install -y texlive-fonts-recommended texlive-latex-recommended | |
cd grml-gen-zshrefcard | |
./genrefcard.pl < ../etc/zsh/zshrc > grml-zsh-refcard.tex | |
pdflatex grml-zsh-refcard.tex | |
- name: Archive build result | |
uses: actions/upload-artifact@v4 | |
with: | |
name: zshrefcard | |
if-no-files-found: error | |
path: | | |
grml-gen-zshrefcard/*.tex | |
grml-gen-zshrefcard/*.pdf |