diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 03c8c716..e8f65a30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,5 +10,12 @@ jobs: distribution: microsoft java-version: 17 - uses: gradle/actions/setup-gradle@v3 + - name: Test dRAGon + run: gradle npmInstall npmLint test + - name: Create Release + run: gradle createRelease - name: Build dRAGon - run: gradle npmInstall npmLint build + run: gradle build + - name: Push Release + if: github.ref == 'refs/heads/main' + run: gradle pushRelease diff --git a/backend/build.gradle b/backend/build.gradle index 8d5d79bf..c0d792b5 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'ai' -version = '0.0.1' +version = '0.0.0' java { sourceCompatibility = '17' diff --git a/build.gradle b/build.gradle index e69de29b..c53e9383 100644 --- a/build.gradle +++ b/build.gradle @@ -0,0 +1,5 @@ +plugins { + id 'pl.allegro.tech.build.axion-release' version '1.17.2' +} + +version = scmVersion.version \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index b0bd830c..a23ca656 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "dragon", - "version": "0.1.0", + "version": "0.0.0", "private": true, "scripts": { "clean": "rm -rf dist build",