Skip to content

Commit

Permalink
Added release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Dec 7, 2023
1 parent ba6c5a0 commit 6f7b739
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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": "^## (?<version>\\d+\\.\\d+\\.\\d+.*?)( |\\n).*$",
"tag_prefix": "v"
},
"env": {
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}"
}
}
]
}
}
}
8 changes: 7 additions & 1 deletion src/ci.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
#:defworkflow)
(:import-from #:40ants-ci/jobs/linter)
(:import-from #:40ants-ci/jobs/run-tests)
(:import-from #:40ants-ci/jobs/docs))
(:import-from #:40ants-ci/jobs/docs)
(:import-from #:40ants-ci/jobs/autotag
#:autotag))
(in-package #:reblocks/ci)


(defworkflow release
:on-push-to "master"
:jobs ((autotag)))

(defworkflow linter
:on-pull-request t
:cache t
Expand Down

0 comments on commit 6f7b739

Please sign in to comment.