diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 3ae1324..6810f80 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -3,7 +3,7 @@ run-name: ${{ gitea.event_name }} by ${{ gitea.actor }} on: push: - branches: [main, master, develop] + branches: [main, master, dev] pull_request: branches: [main, master] @@ -29,6 +29,11 @@ jobs: - name: Test run: ./gradlew --no-daemon test + deploy: + runs-on: ubuntu-24.04 + needs: build + if: gitea.event_name == 'pull_request' && gitea.base_ref == 'master' && gitea.head_ref == 'dev' + steps: - name: Build distribution run: ./gradlew --no-daemon installDist @@ -44,11 +49,6 @@ jobs: docker push ${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}:${{ gitea.sha }} docker push ${{ secrets.REGISTRY_URL }}/${{ gitea.repository }}:latest - deploy: - runs-on: ubuntu-24.04 - needs: build - if: gitea.ref == 'refs/heads/main' || gitea.ref == 'refs/heads/master' - steps: - name: Deploy via SSH uses: appleboy/ssh-action@v1 with: diff --git a/.gitignore b/.gitignore index 24b3579..126da29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,31 @@ -/.idea/ -/.opencode/ -/.swarm/ -/.kotlin/ +# ---> Kotlin +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* + +# Kotlin Gradle plugin data, see https://kotlinlang.org/docs/whatsnew20.html#new-directory-for-kotlin-data-in-gradle-projects +.kotlin/ + +# IDE +.idea/ diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index a313ba2..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Ignored default folder with query files -/queries/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml -# Editor-based HTTP Client requests -/httpRequests/ -.swarm/ -.opencode/ -.kotlin/ -build/ \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..efb9808 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to