-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (33 loc) · 1.12 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: release
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install wkthtmltopdf
run: |
sudo apt-get install -y xfonts-base xfonts-75dpi
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
- name: Install Liberation Fonts
run: |
sudo apt-get update -y
sudo apt-get install -y fonts-liberation
- name: Run .py script for Doc Generation
run: |
cmake . -Bbuild
cmake --build build
- name: Upload zipped doc file to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/Generated-Offline-Manual.zip
asset_name: Generated-Offline-Manual.zip
tag: Docs-Release
overwrite: true
body: "This is a release containing the Docs Generated using Github Actions."