diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..51f5c62 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,50 @@ +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 github-actions-bot@users.noreply.github.com + + - name: Generate PDFs + run: | + cd guide + make pdf + + - name: Upload all pdfs + uses: actions/upload-artifact@v3.1.0 + with: + name: gnucobol-docs-all-pdfs + path: guide/PDFs/*.pdf + if-no-files-found: error + retention-days: 0 diff --git a/guide/Makefile b/guide/Makefile index ce16f43..8c6576c 100644 --- a/guide/Makefile +++ b/guide/Makefile @@ -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/