From 0f97b59c9210b2258b92c1fdd234ab9e2333982d Mon Sep 17 00:00:00 2001 From: "Nuffer-Rodriguez, Frankie L" Date: Wed, 18 Feb 2026 13:13:50 -0700 Subject: [PATCH 1/3] added publishing to github --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index 621194b..0feeefb 100644 --- a/build.gradle +++ b/build.gradle @@ -88,4 +88,16 @@ publishing { artifact source: tasks.named("zipPython"), extension: 'zip' } } + + // publish to github packages + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/DOI-BOR/WTMP-Python-Plotting") + credentials { + username = System.getenv("GITHUB_ACTOR") + password = System.getenv("GITHUB_TOKEN") + } + } + } } \ No newline at end of file From 228a650475095f3187e3314a274531f4807cbb62 Mon Sep 17 00:00:00 2001 From: "Nuffer-Rodriguez, Frankie L" Date: Wed, 18 Feb 2026 13:14:12 -0700 Subject: [PATCH 2/3] added codeowners --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..d24fc84 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +.github/* @DOI-BOR/bdo-wtmp +.github/workflows/* @DOI-BOR/bdo-wtmp \ No newline at end of file From cad8f8286754605ba38bd2c4d7627708fcdb8018 Mon Sep 17 00:00:00 2001 From: "Nuffer-Rodriguez, Frankie L" Date: Wed, 18 Feb 2026 13:14:29 -0700 Subject: [PATCH 3/3] added actions --- .github/workflows/publish_build.yml | 33 +++++++++++++++++++++++++++++ .github/workflows/test_build.yml | 31 +++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .github/workflows/publish_build.yml create mode 100644 .github/workflows/test_build.yml diff --git a/.github/workflows/publish_build.yml b/.github/workflows/publish_build.yml new file mode 100644 index 0000000..4e1bf37 --- /dev/null +++ b/.github/workflows/publish_build.yml @@ -0,0 +1,33 @@ +name: Publish with Gradle + +permissions: + contents: read + packages: write + +# this should only be triggered manually +on: workflow_dispatch + +jobs: + build: + # run on windows to mimic local build + runs-on: windows-latest + + steps: + - name: Checkout repository + # checkout action hash for version 6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + + - name: Set up Java + # setup-java action hash for version 5.2.0 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 + with: + # Gradle needs java 17 or above + java-version: '17' + distribution: 'temurin' + - name: Publish with Gradle wrapper command + # this run will do the publishing with the wrapper already provided in the repository + run: ./gradlew.bat publish + # these are the credentials we will need + env: + GITHUB_ACTOR: ${{ secrets.PACKAGES_USER }} + GITHUB_TOKEN: ${{ secrets.PACKAGES_PAT }} diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml new file mode 100644 index 0000000..5d05797 --- /dev/null +++ b/.github/workflows/test_build.yml @@ -0,0 +1,31 @@ +name: Test Build with Gradle + + +on: + push: + branches: [ "main", "master" ] + pull_request: + branches: [ "main", "master" ] + + +jobs: + build: + # run on windows to mimic local build + runs-on: windows-latest + + steps: + - name: Checkout repository + # checkout action hash for version 6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + + - name: Set up Java + # setup-java action hash for version 5.2.0 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 + with: + # Gradle needs java 17 or above + java-version: '17' + distribution: 'temurin' + + - name: Build with Gradle wrapper command + # this run will do the build with the wrapper already provided in the repository + run: ./gradlew.bat build