Skip to content

Doc

Doc #292

Workflow file for this run

# Authors:
# Unai Martinez-Corral
#
# Copyright 2021 Unai Martinez-Corral <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: Doc
on:
pull_request:
push:
schedule:
- cron: '0 0 * * 4'
workflow_dispatch:
env:
DOCKER_BUILDKIT: 1
jobs:
Site:
runs-on: ubuntu-latest
steps:
- name: 🧰 Checkout
uses: actions/checkout@v4
- name: 🛠️ Get bib files from umarcor/umarcor
run: |
make -C doc/site references
ls -la doc/site/references
- name: 📓 Build The Docs
uses: buildthedocs/btd@v0
with:
token: ${{ github.token }}
skip-deploy: github.event_name == 'pull_request'
Slides:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
slides:
- 2020_03
- 2021_05
- 2022_05
- 2023_05
steps:
- name: 🧰 Checkout
uses: actions/checkout@v4
- name: 🛠️ Create subdir 'doc/pdf'
run: mkdir -p doc/pdf
- name: 🚧 Build slides
run: make -C doc/${{ matrix.slides }} container
- name: '📤 Upload artifact: ${{ matrix.slides }}.pdf'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.slides }}
path: doc/pdf/*.pdf
Release:
name: '📦 Release'
runs-on: ubuntu-latest
needs:
- Slides
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/'))
steps:
- name: '📥 Download artifacts'
uses: actions/download-artifact@v4
with:
path: artifacts
- uses: pyTooling/Actions/releaser@r0
with:
token: ${{ github.token }}
tag: tip
files: |
artifacts/2020_03/*.pdf
artifacts/2021_05/*.pdf
artifacts/2022_05/*.pdf
artifacts/2023_05/*.pdf