Skip to content

Commit

Permalink
Feat/add release logic (#2)
Browse files Browse the repository at this point in the history
* feat: added release logic

* Update release.yml

* Update release.yml

* Update release.yml

* feat: added release logic
  • Loading branch information
adrianprelipcean committed May 8, 2024
1 parent 6a2563a commit eeed36c
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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"]
container: pgxn/pgxn-tools
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).
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 <adrianprelipceanc@gmail.com>
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 eeed36c

Please sign in to comment.