From c6a2fecfd4c63e48852e441dd14d0b290c19242e Mon Sep 17 00:00:00 2001 From: Christian Rakow Date: Tue, 30 Nov 2021 11:26:04 +0100 Subject: [PATCH] prepare release --- .github/workflows/maven-publish.yml | 34 ----------------------------- .github/workflows/publish.yml | 16 ++++++++++++++ pom.xml | 7 +----- 3 files changed, 17 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/maven-publish.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml deleted file mode 100644 index 18dd937..0000000 --- a/.github/workflows/maven-publish.yml +++ /dev/null @@ -1,34 +0,0 @@ -# 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: Maven Package - -on: - release: - types: [created] - -jobs: - build: - - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - java-version: '11' - distribution: 'adopt' - 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/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..9a2a316 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,16 @@ +name: Publish package to GitHub Packages +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Publish package + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3558dbb..fac2eb9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.github.matsim-vsp pt-extensions - 0.0.1-SNAPSHOT + 0.0.1 MATSim pt extensions MATSim experimental pt extensions @@ -61,11 +61,6 @@ com.slimjars.trove4j https://mvn.slimjars.com - - - SBB - https://schweizerischebundesbahnen.bintray.com/simba.mvn -