Skip to content

Commit

Permalink
Add simple Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Jan 13, 2024
1 parent e403722 commit 3cf3110
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 6 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Ubuntu Workflow

on:
pull_request:
branches: [ master-with-README ]
push:
# manual run in actions tab - for all branches
workflow_dispatch:

jobs:
build:
name: Build, test and provide nightly
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
include:
- os: ubuntu-latest
skip_test: true

runs-on: ${{ matrix.os }}

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout code
uses: actions/checkout@v3

- name: Install packages
run: |
sudo apt-get update
sudo apt-get install texlive texlive-latex-extra texlive-plain-generic
- name: Set git user
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- name: Generate PDFs
run: |
cd guide
make pdf
- name: Upload all pdfs
uses: actions/[email protected]
with:
name: gnucobol-docs-all-pdfs
path: guide/PDFs/*.pdf
if-no-files-found: error
retention-days: 0

- name: Generate HTML
run: |
cd guide
make html
- name: Upload HTML
uses: actions/[email protected]
with:
name: gnucobol-docs-html
path: guide/HTML
if-no-files-found: error
retention-days: 0

- name: Generate INFO
run: |
cd guide
make info
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/guide/HTML
*~
/guide/info/*
/guide/PDFs/*
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Actions Status](https://github.com/ocamlpro/gnucobol-docs/workflows/Ubuntu%20Workflow/badge.svg)](https://github.com/ocamlpro/gnucobol-docs/actions/workflows/ubuntu.yml)

# External Documentation of the GnuCOBOL Project

This repository is a GIT version hosted on Github of the
Expand Down
12 changes: 6 additions & 6 deletions guide/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ HTML/gnucobpr/index.html: $(SOURCES_PR)
makeinfo -v -o $(dir $@) $(WARNING) \
--html $(HTML_OPT) gnucobpr.texi

info: info/gnucobsp.info info/gnucobqr.info info/gnucobpg.info /
info/gnucobpr.info
info: info/gnucobsp.info info/gnucobqr.info info/gnucobpg.info
# info/gnucobpr.info

#
# Rules
Expand Down Expand Up @@ -125,23 +125,23 @@ info-clean:
@rm -rvf info/gnucob*.info


publish: HTML/gnucobpg.html $(CSS)
publish:: HTML/gnucobpg.html $(CSS)
test "$(WWW)"
scp HTML/gnucobpg.html $(WWW)
scp css/gnucobpg.css $(WWW)/css/
scp js/tree.js $(WWW)/js/

publish-css: HTML/gnucobpg.html $(CSS)
publish-css:: HTML/gnucobpg.html $(CSS)
test "$(WWW)"
scp css/gnucobpg.css $(WWW)/css/
scp js/tree.js $(WWW)/js/

publish-css: HTML/gnucobpr.html $(CSS)
publish-css:: HTML/gnucobpr.html $(CSS)
test "$(WWW)"
scp css/gnucobpr.css $(WWW)/css/
scp js/tree.js $(WWW)/js/

publish: HTML/gnucobpr.html $(CSS)
publish:: HTML/gnucobpr.html $(CSS)
test "$(WWW)"
scp HTML/gnucobpr.html $(WWW)
scp css/gnucobpr.css $(WWW)/css/
Expand Down

0 comments on commit 3cf3110

Please sign in to comment.