2022-09-05 04:01:59 -07:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
# Controls when the workflow will run
|
2023-07-12 17:35:49 -07:00
|
|
|
# https://github.com/jgm/pandoc/releases/download/3.1.5/pandoc-3.1.5-1-amd64.deb
|
2022-09-05 04:01:59 -07:00
|
|
|
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:
|
2023-07-12 17:35:49 -07:00
|
|
|
runs-on: ubuntu-20.04
|
2022-09-05 04:01:59 -07:00
|
|
|
|
|
|
|
# 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: |
|
2023-07-12 17:35:49 -07:00
|
|
|
wget https://github.com/jgm/pandoc/releases/download/3.1.5/pandoc-3.1.5-1-amd64.deb
|
|
|
|
sudo dpkg -i pandoc-3.1.5-1-amd64.deb
|
2022-09-05 04:01:59 -07:00
|
|
|
|
|
|
|
- name: Preparing directories
|
|
|
|
run: |
|
2022-09-05 04:06:57 -07:00
|
|
|
cd $GITHUB_WORKSPACE
|
|
|
|
sudo ln -s $GITHUB_WORKSPACE/img /img
|
2022-09-05 04:01:59 -07:00
|
|
|
|
|
|
|
- name: Building PDF
|
|
|
|
run: sudo ./make_pdf.sh
|
2022-09-05 05:07:28 -07:00
|
|
|
|
|
|
|
- name: Upload PDF
|
2022-09-05 05:30:57 -07:00
|
|
|
env:
|
|
|
|
WEB_PWD: ${{ secrets.WEB_PWD }}
|
2022-09-05 05:07:28 -07:00
|
|
|
run: |
|
|
|
|
curl -v https://speeduino.com:2078 || true
|
2022-09-05 05:22:13 -07:00
|
|
|
curl -v --tlsv1.2 --ipv4 --user "speeduino_manual@speeduino.com:$WEB_PWD" --basic -T "./offline/Speeduino_manual.pdf" "https://speeduino.com:2078/Speeduino_manual.pdf"
|