Skip to content

Commit

Permalink
feat: added release logic
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianprelipcean committed May 8, 2024
1 parent 6a2563a commit fc8f028
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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).
18 changes: 18 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!--
SPDX-FileCopyrightText: 2024 Adrian C. Prelipcean <[email protected]>
SPDX-License-Identifier: CC-BY-NC-SA-4.0
-->

# 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

0 comments on commit fc8f028

Please sign in to comment.