diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 0000000..7bf5a7e --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,26 @@ +# This workflow will build a Java project with Maven +name: Build and publish schemas with Maven + +on: + release: + types: [ created ] + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + SSH_KEY: ${{secrets.SUBMODULE_CONTENT_PULL_KEY}} + +jobs: + build-and-publish: + name: Build and publish code + runs-on: ubuntu-latest + steps: + - name: Checkout main repository + uses: actions/checkout@v3 + + - name: Clean with Maven + run: mvn clean + - name: Compile with Maven + run: mvn compile + - name: Run publish with Maven + run: mvn deploy diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..a6d08d0 --- /dev/null +++ b/pom.xml @@ -0,0 +1,19 @@ + + + 4.0.0 + + groupId + ctr-schemas + 1.0-SNAPSHOT + + + + github + GitHub Packages + https://maven.pkg.github.com/trifork/ctr-schemas + + + + \ No newline at end of file