-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from toyokumo/remove-leiningen
Remove leiningen and bump deps
- Loading branch information
Showing
9 changed files
with
107 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Tag and Release | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
tag-and-release: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '21' | ||
java-package: jdk | ||
architecture: x64 | ||
|
||
- uses: DeLaGuardo/setup-clojure@master | ||
with: | ||
cli: latest | ||
|
||
- name: Show versions | ||
run: | | ||
java -version | ||
clojure --version | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2 | ||
key: clj-cache-${{ hashFiles('**/deps.edn') }} | ||
restore-keys: | | ||
clj-cache- | ||
- name: Deploy to clojars | ||
id: deploy | ||
run: clojure -T:build deploy | ||
env: | ||
CLOJARS_PASSWORD: ${{secrets.CLOJARS_PASSWORD}} | ||
CLOJARS_USERNAME: ${{secrets.CLOJARS_USERNAME}} | ||
|
||
- name: Create tag and release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.deploy.outputs.version }} | ||
release_name: ${{ steps.deploy.outputs.version }} | ||
body: released | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Update documents | ||
run: | | ||
clojure -T:build update-documents | ||
git diff | ||
git config --global user.email "github-actions@example.com" | ||
git config --global user.name "github-actions" | ||
git add -A | ||
git commit -m "Update for release" || exit 0 | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ pom.xml.asc | |
/.nrepl-port | ||
.idea | ||
*.iml | ||
.cpcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# Change Log | ||
## Unreleased | ||
### Breaking | ||
- Use deps.edn instead of Leiningen. | ||
|
||
## 0.3.0 | ||
### ADDED | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{:lib toyokumo/ring-middleware-csp | ||
:version "0.4.{{git/commit-count}}" | ||
:description "Ring middleware for Content Security Policy" | ||
:licenses [{:name "Apache, Version 2.0" | ||
:url "http://www.apache.org/licenses/LICENSE-2.0"}] | ||
:documents [{:file "CHANGELOG.md" | ||
:match "Unreleased" | ||
:action :append-after | ||
:text "\n## {{version}}"}] | ||
:github-actions? true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{:paths ["src" "resources"], | ||
:deps {org.clojure/clojure {:mvn/version "1.11.1"}} | ||
|
||
:aliases | ||
{:dev {:extra-paths ["test"] | ||
:extra-deps {lambdaisland/kaocha {:mvn/version "1.87.1366"}}} | ||
:test {:main-opts ["-m" "kaocha.runner"]} | ||
:build {:deps {com.github.liquidz/build.edn {:git/tag "0.11.241" | ||
:git/sha "277bf6ebfbf8f38acbffa33a1670f5965bf4634f"}} | ||
:ns-default build-edn.main}}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#kaocha/v1 | ||
{:fail-fast? true | ||
:color? true | ||
:reporter [kaocha.report/documentation] | ||
:plugins [:kaocha.plugin/profiling | ||
:kaocha.plugin/print-invocations]} |