From a25410e3b901105199f1d2b6993bea641fed6559 Mon Sep 17 00:00:00 2001 From: Alexander Artemenko Date: Wed, 13 Dec 2023 22:11:48 +0000 Subject: [PATCH] Updated changelog. --- .github/workflows/docs.yml | 8 +++---- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ changelog.lisp | 2 ++ ci.lisp | 9 +++++++- 4 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0164985..7873bc5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -117,18 +117,18 @@ "if": "steps.cache.outputs.cache-hit != 'true'" }, { - "name": "Change dist to Ultralisp", - "run": "echo 'dist ultralisp http://dist.ultralisp.org' > qlfile", + "name": "Change dist to Ultralisp if qlfile does not exist", + "run": "if [[ ! -e qlfile ]]; then echo 'dist ultralisp http://dist.ultralisp.org' > qlfile; fi", "shell": "bash" }, { "name": "Update Qlot", - "run": "qlot update || qlot update", + "run": "qlot update --no-deps", "shell": "bash" }, { "name": "Install SBLint wrapper", - "run": "qlot exec ros install 40ants-linter", + "run": "qlot exec ros install 40ants-asdf-system 40ants-linter", "shell": "bash" }, { diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..954a253 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +{ + "name": "RELEASE", + "on": { + "push": { + "branches": [ + "master" + ] + } + }, + "jobs": { + "autotag": { + "permissions": { + "contents": "write" + }, + "runs-on": "ubuntu-latest", + "env": { + "OS": "ubuntu-latest" + }, + "steps": [ + { + "name": "Checkout Code", + "uses": "actions/checkout@v3" + }, + { + "name": "Create release tag", + "uses": "butlerlogic/action-autotag@8bc1ad456dcdee34e8c6ffbce991cc31793578c2", + "with": { + "root": "ChangeLog.md", + "regex_pattern": "^## (?\\d+\\.\\d+\\.\\d+.*?)( |\\n).*$", + "tag_prefix": "v" + }, + "env": { + "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}" + } + } + ] + } + } +} \ No newline at end of file diff --git a/changelog.lisp b/changelog.lisp index c2206b6..0be37ca 100644 --- a/changelog.lisp +++ b/changelog.lisp @@ -6,6 +6,8 @@ (defchangelog (:ignore-words ("ASDF")) + (3.0.0 2023-12-14 + "Now action uses a fix for Quicklisp client which makes it possible to load package inferred ASDF systems by name of the subsystem.") (2.1.0 2022-11-10 "Moved to newer action msys2/setup-msys2@2.14.2 where a warning about stale Node.js version is fixed.") (2.0.0 2021-10-28 diff --git a/ci.lisp b/ci.lisp index 4e12ea7..bc21575 100644 --- a/ci.lisp +++ b/ci.lisp @@ -2,10 +2,17 @@ (:use #:cl) (:import-from #:40ants-ci/workflow #:defworkflow) - (:import-from #:40ants-ci/jobs/docs)) + (:import-from #:40ants-ci/jobs/docs) + (:import-from #:40ants-ci/jobs/autotag) + (:import-from #:40ants-ci/jobs/linter)) (in-package project-docs/ci) +(defworkflow release + :on-push-to "master" + :jobs ((40ants-ci/jobs/autotag:autotag))) + + (defworkflow docs :on-push-to "master" :on-pull-request t