diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 0000000..f165a6d --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,34 @@ +# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path + +name: Publish Release + +on: + release: + types: [created] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Publish to GitHub Packages Apache Maven + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/README.fr.md b/README.fr.md index 2615497..713fab7 100644 --- a/README.fr.md +++ b/README.fr.md @@ -10,14 +10,15 @@ Une implémentation Spark Datasource pour MessagePack. * [msgpack-java](https://github.com/msgpack/msgpack-java) ## Coordonnées Maven +Nous publions toutes nos versions dans le référentiel central Maven: [spark-msgpack-datasource-3.5_2.12](https://central.sonatype.com/artifact/io.github.cybercentrecanada/spark-msgpack-datasource-3.5_2.12) + ```xml io.github.cybercentrecanada spark-msgpack-datasource-3.4_2.12 - 1.2.0 ``` -[spark-msgpack-datasource-3.5_2.12](https://central.sonatype.com/artifact/io.github.cybercentrecanada/spark-msgpack-datasource-3.5_2.12) + ## Lire et écrire les données msgpack: ```scala diff --git a/README.md b/README.md index b95ccb1..f48f6ae 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,15 @@ A Spark Datasource implementation for MessagePack. * [msgpack-java](https://github.com/msgpack/msgpack-java) ## Maven Coordinates +We publish all our releases to maven central repository: [spark-msgpack-datasource-3.5_2.12](https://central.sonatype.com/artifact/io.github.cybercentrecanada/spark-msgpack-datasource-3.5_2.12) + ```xml io.github.cybercentrecanada spark-msgpack-datasource-3.5_2.12 - 1.2.0 ``` -[spark-msgpack-datasource-3.5_2.12](https://central.sonatype.com/artifact/io.github.cybercentrecanada/spark-msgpack-datasource-3.5_2.12) + ## Read and Write MessagePack data: diff --git a/pom.xml b/pom.xml index d7d8ccc..4457a79 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ io.github.cybercentrecanada spark-msgpack-datasource-3.5_2.12 jar - 1.6.0 + 1.7.0-SNAPSHOT spark-msgpack-datasource A spark datasource implementation for the msgpack file format. https://github.com/CybercentreCanada/spark-msgpack-datasource