Skip to content

Commit

Permalink
Debug yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
rs028 committed Jan 1, 2025
1 parent c74fd1d commit c9a3ffb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ jobs:
matrix:
os: [ubuntu-20.04, ubuntu-22.04] #, macos-12, macos-13]
fortran: [10, 11, 12]
# exclude: # gfortran-11, gfortran-12 not available for ubuntu-20.04
# - os: ubuntu-20.04
# fortran: 11
# - os: ubuntu-20.04
# fortran: 12
exclude: # gfortran-11, gfortran-12 not available for ubuntu-20.04
- os: ubuntu-20.04
fortran: 11
- os: ubuntu-20.04
fortran: 12
fail-fast: false

# -------------------------------------------------------------
Expand Down
33 changes: 17 additions & 16 deletions .github/workflows/tex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ on:
# master branch), and the .tex/.svg files modified
pull_request:
branches: [ master ]
paths:
- './doc/latex/*.tex'
- './doc/figures/*.svg'
# paths:
# - './doc/latex/*.tex'
# - './doc/figures/*.svg'

# Triggers when a push is made to the master branch (either by
# merging a pull request, or by direct commit)
Expand All @@ -35,13 +35,12 @@ on:

# ------------------------------ JOBS ------------------------------ #
# This workflow contains a single job called `pdf_manual` which sets
# up a full TeXLive environment, compiles the latex source files, and
# up a full TeXLive environment, compiles the source files, and
# generates the pdf file of the manual
jobs:
pdf_manual:
# The job runs on the latest version of linux (ubuntu)
runs-on: ubuntu-latest

permissions:
contents: write

Expand All @@ -55,36 +54,38 @@ jobs:
with:
fetch-depth: 2
ref: ${{ github.ref }}
echo "------> ${{ github.ref }}"

# -------------------------------------------------------------
# 2. Setup TeXLive and Inkscape (v1.x), then run the script to
# generate the pdf file of the manual
# 2. Setup TeXLive and Inkscape (v1.x), then run the script
# `tools/make_manual_pdf.sh`
- name: Setup TexLive and compile the manual
uses: xu-cheng/texlive-action@v2 # https://github.com/marketplace/actions/github-action-with-texlive
with:
scheme: small
run: |
# install inkscape
apk add inkscape
# run script to generate the pdf file
./tools/make_manual_pdf.sh
# -------------------------------------------------------------
# 3.
- name: Upload pdf file as artifact
uses: actions/upload-artifact@v4 # https://github.com/marketplace/actions/upload-a-build-artifact
with:
name: AtChem2-Manual.pdf
path: doc/AtChem2-Manual.pdf

# -------------------------------------------------------------
# 3.
- name: Configure git
# 4.
- name: Add pdf to PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
#
# configure git
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
#
git add doc/AtChem2-Manual.pdf
git commit -m "Update AtChem2-Manual.pdf"
git push origin HEAD:${{ github.ref }}
# commit pdf file
git status
# git add doc/AtChem2-Manual.pdf
# git commit -m "Update AtChem2-Manual.pdf"
# git push origin HEAD:${{ github.ref }}

0 comments on commit c9a3ffb

Please sign in to comment.