Skip to content

Commit a1ecb01

Browse files
committed
Add simple Github workflow with PDF, HTML and INFO geneation
1 parent e403722 commit a1ecb01

File tree

4 files changed

+81
-6
lines changed

4 files changed

+81
-6
lines changed

.github/workflows/ubuntu.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Ubuntu Workflow
2+
3+
on:
4+
pull_request:
5+
branches: [ master-with-README ]
6+
push:
7+
# manual run in actions tab - for all branches
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: Build, test and provide nightly
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
include:
19+
- os: ubuntu-latest
20+
skip_test: true
21+
22+
runs-on: ${{ matrix.os }}
23+
24+
steps:
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- name: Checkout code
27+
uses: actions/checkout@v3
28+
29+
- name: Install packages
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install texlive texlive-latex-extra texlive-plain-generic
33+
34+
- name: Set git user
35+
run: |
36+
git config --global user.name github-actions
37+
git config --global user.email [email protected]
38+
39+
- name: Generate PDFs
40+
run: |
41+
cd guide
42+
make pdf
43+
44+
- name: Generate HTML
45+
run: |
46+
cd guide
47+
make html
48+
49+
- name: Generate INFO
50+
run: |
51+
cd guide
52+
rm -rf info
53+
make info
54+
55+
- name: Upload all pdfs
56+
uses: actions/[email protected]
57+
with:
58+
name: gnucobol-docs-all-pdfs
59+
path: guide/PDFs/*.pdf
60+
if-no-files-found: error
61+
retention-days: 0
62+
63+
- name: Upload HTML
64+
uses: actions/[email protected]
65+
with:
66+
name: gnucobol-docs-html
67+
path: guide/HTML
68+
if-no-files-found: error
69+
retention-days: 0

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
/guide/HTML
22
*~
3+
/guide/info/*
4+
/guide/PDFs/*
5+
*.pdf
6+
*.info

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Actions Status](https://github.com/ocamlpro/gnucobol-docs/workflows/Ubuntu%20Workflow/badge.svg)](https://github.com/ocamlpro/gnucobol-docs/actions/workflows/ubuntu.yml)
2+
13
# External Documentation of the GnuCOBOL Project
24

35
This repository is a GIT version hosted on Github of the

guide/Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ HTML/gnucobpr/index.html: $(SOURCES_PR)
8585
makeinfo -v -o $(dir $@) $(WARNING) \
8686
--html $(HTML_OPT) gnucobpr.texi
8787

88-
info: info/gnucobsp.info info/gnucobqr.info info/gnucobpg.info /
89-
info/gnucobpr.info
88+
info: info/gnucobsp.info info/gnucobqr.info info/gnucobpg.info
89+
# info/gnucobpr.info
9090

9191
#
9292
# Rules
@@ -125,23 +125,23 @@ info-clean:
125125
@rm -rvf info/gnucob*.info
126126

127127

128-
publish: HTML/gnucobpg.html $(CSS)
128+
publish:: HTML/gnucobpg.html $(CSS)
129129
test "$(WWW)"
130130
scp HTML/gnucobpg.html $(WWW)
131131
scp css/gnucobpg.css $(WWW)/css/
132132
scp js/tree.js $(WWW)/js/
133133

134-
publish-css: HTML/gnucobpg.html $(CSS)
134+
publish-css:: HTML/gnucobpg.html $(CSS)
135135
test "$(WWW)"
136136
scp css/gnucobpg.css $(WWW)/css/
137137
scp js/tree.js $(WWW)/js/
138138

139-
publish-css: HTML/gnucobpr.html $(CSS)
139+
publish-css:: HTML/gnucobpr.html $(CSS)
140140
test "$(WWW)"
141141
scp css/gnucobpr.css $(WWW)/css/
142142
scp js/tree.js $(WWW)/js/
143143

144-
publish: HTML/gnucobpr.html $(CSS)
144+
publish:: HTML/gnucobpr.html $(CSS)
145145
test "$(WWW)"
146146
scp HTML/gnucobpr.html $(WWW)
147147
scp css/gnucobpr.css $(WWW)/css/

0 commit comments

Comments
 (0)