Compare commits

..

3 commits

Author SHA1 Message Date
4ba5ac9284
ci: bump to v1.0.0-rc.0
All checks were successful
/ build (push) Successful in 8s
/ release (push) Successful in 8s
2024-11-27 10:12:16 +01:00
057bdfd9c9
ci: include version in release asset 2024-11-27 10:09:30 +01:00
0c5e5ca00a
ci: derive version from pom.xml 2024-11-27 10:08:56 +01:00
3 changed files with 10 additions and 3 deletions

View file

@ -18,5 +18,6 @@ jobs:
- run: | - run: |
export XDG_CONFIG_HOME=$PWD/.config export XDG_CONFIG_HOME=$PWD/.config
export GITEA_SERVER_TOKEN=${{ secrets.GITHUB_TOKEN }} export GITEA_SERVER_TOKEN=${{ secrets.GITHUB_TOKEN }}
mv ./artifact/keycloak-scim.jar ./artifact/keycloak-scim-${{ github.ref_name }}.jar
tea login add --url ${{ env.GITHUB_SERVER_URL }} tea login add --url ${{ env.GITHUB_SERVER_URL }}
tea release create --asset ./artifact/keycloak-scim.jar --note "$(git-cliff -s all --current)" --repo "${{ github.repository }}" --tag "${{ github.ref_name }}" --title "${{ github.ref_name }}" tea release create --asset ./artifact/keycloak-scim-${{ github.ref_name }}.jar --note "$(git-cliff -s all --current)" --repo "${{ github.repository }}" --tag "${{ github.ref_name }}" --title "${{ github.ref_name }}"

View file

@ -20,7 +20,13 @@
{ {
packages.default = pkgs.maven.buildMavenPackage rec { packages.default = pkgs.maven.buildMavenPackage rec {
pname = "keycloak-scim"; pname = "keycloak-scim";
version = "1.0-SNAPSHOT"; version = (
builtins.readFile (
pkgs.runCommand "version" { } ''
${pkgs.coreutils}/bin/cat ${src}/pom.xml | ${pkgs.xq-xml}/bin/xq -x "project/version" | ${pkgs.coreutils}/bin/tr -d '\n' > $out
''
)
);
src = ./.; src = ./.;
mvnHash = "sha256-y3ASPCAbgwSJNu4NiBeWNFc8YA903C0e5z0/TSlc3Og="; mvnHash = "sha256-y3ASPCAbgwSJNu4NiBeWNFc8YA903C0e5z0/TSlc3Og=";

View file

@ -10,7 +10,7 @@
<groupId>sh.libre.scim</groupId> <groupId>sh.libre.scim</groupId>
<artifactId>keycloak-scim</artifactId> <artifactId>keycloak-scim</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0.0-rc.0</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<dependencies> <dependencies>