diff --git a/.github/workflows/deploy-geo.yml b/.github/workflows/deploy-geo.yml new file mode 100644 index 0000000..c67b308 --- /dev/null +++ b/.github/workflows/deploy-geo.yml @@ -0,0 +1,41 @@ +name: Build and Deploy AlpsLib-Geo + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'geo/build.gradle.kts' + # - 'geo/**' + # - '.github/workflows/deploy-geo.yml' + # - 'gradle/**' + # - 'buildSrc/**' + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Set up JDK + uses: actions/setup-java@v5 + with: + distribution: 'temurin' + java-version: '21' + cache: 'gradle' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v5 + + - name: Build with Gradle + run: ./gradlew clean :alpslib-geo:build + + # The USERNAME and TOKEN need to correspond to the credentials environment variables used in + # the publishing section of your build.gradle + - name: Publish to GitHub Packages + run: ./gradlew :alpslib-geo:publish + env: + ORG_GRADLE_PROJECT_alpsMavenUser: ${{ secrets.MAVEN_USERNAME }} + ORG_GRADLE_PROJECT_alpsMavenPassword: ${{ secrets.MAVEN_PASSWORD }} \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 620b8eb..46cb202 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -20,6 +20,7 @@ diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 736ba64..b036cba 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -56,5 +56,10 @@