Merge pull request #3 from adrianprelipcean/feat/improvements #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: © 2024 Adrian C. Prelipcean | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
name: release | |
on: [push] | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install doxygen | |
run: | | |
sudo apt update | |
sudo apt install -y doxygen | |
- name: Cache requirements | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install requirements | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Sphinx build | |
run: | | |
doxygen Doxygen && sphinx-build docs/ docs/_build/ -a | |
- name: Build package to upload to GitHub releases | |
run: | | |
touch pgtfs.tar.gz | |
tar --exclude=pgtfs.tar.gz -czvf pgtfs.tar.gz ./ | |
- name: Create a Github release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
files: pgtfs.tar.gz | |
body: | |
You can view the changelog | |
[here](https://github.com/adrianprelipcean/pgtfs/blob/main/changelog.md). |