Initial work converting from Travis to Github Actions

This commit is contained in:
Josh Stewart 2022-09-05 21:01:59 +10:00 committed by GitHub
parent 83b9478846
commit c2a1056d8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 41 additions and 0 deletions

41
.github/workflows/generate_pdf.yml vendored Normal file
View File

@ -0,0 +1,41 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-18.04
# 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@v3
- name: Install Dependencies
run: |
sudo apt-get update -qq
sudo apt-get install texlive-fonts-recommended lmodern texlive-xetex texlive-fonts-extra pandoc
- name: Installing Pandoc
run: |
wget https://github.com/jgm/pandoc/releases/download/2.9.1.1/pandoc-2.9.1.1-1-amd64.deb
sudo dpkg -i pandoc-2.9.1.1-1-amd64.deb
- name: Preparing directories
run: |
cd $GITHUB_WORKSPACE/wiki.js
sudo ln -s /home/travis/build/speeduino/wiki.js/img /img
- name: Building PDF
run: sudo ./make_pdf.sh