Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,12 @@ jobs:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git branch --set-upstream-to=origin/main main
swipl -g "pack_publish('.', [sign(false), branch(main), interactive(false)])" -t halt
- name: GitHub release of the tag
env:
GH_TOKEN: ${{ github.token }}
run: |
VERSION="$(swipl -g "read_file_to_terms('pack.pl', Terms, []), memberchk(version(Version), Terms), write(Version)" -t halt)"
test -n "$VERSION"
if ! gh release view "V$VERSION" > /dev/null 2>&1; then
gh release create "V$VERSION" --verify-tag --title "V$VERSION" --generate-notes
fi
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ Open pull requests against `main`. `main` changes only by merging a pull
request with a merge commit, and every merge into `main` is a release:
CI runs `swipl pack publish` on the merged `main`, which tags `V<version>`
from the `version/1` of `pack.pl`, installs the pack from this repository
in an isolated directory and registers it with the SWI-Prolog pack server.
in an isolated directory and registers it with the SWI-Prolog pack server;
CI then makes the GitHub release of the tag, with notes GitHub generates.
A pull request into `main` must therefore raise `version/1` above every
released version; a required check enforces it.

Expand Down
2 changes: 1 addition & 1 deletion pack.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name(hash_consing).
version('0.2.1').
version('0.2.2').
title('Hash-consed terms by clause rewriting').
keywords([interning, 'hash-consing', trie, term_expansion]).
author('Yang, Bo', 'yang-bo@yang-bo.com').
Expand Down
Loading