diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..45491a1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,53 @@ +# SPDX-FileCopyrightText: © 2024 Adrian C. Prelipcean +# +# SPDX-License-Identifier: CC0-1.0 + +name: release + +on: [push] + +jobs: + release: + name: Release + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - 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: Extension build + run: | + make && make install + - 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). \ No newline at end of file diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..9f8a8fb --- /dev/null +++ b/changelog.md @@ -0,0 +1,18 @@ + + +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to +[Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.0.1](https://github.com/adrianprelipcean/pgtfs/releases/tag/v0.0.1) +### Added +- Added Connection Scan Algorithm implementation +- Added SQL extension implementation \ No newline at end of file