diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml deleted file mode 100644 index 81cb444..0000000 --- a/.github/workflows/maven-publish.yml +++ /dev/null @@ -1,37 +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 Publish - -on: - release: - types: [published] - -jobs: - build: - - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 17 - uses: actions/setup-java@v2 - with: - java-version: '17' - distribution: 'temurin' - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml - - - name: Build with Maven - run: mvn -B package --file pom.xml - - - name: Deploy to Github Package Registry - env: - GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }} - run: | - mkdir -p ~/.m2 - echo "gh$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $1}')\${env.GITHUB_TOKEN}" > ~/.m2/settings.xml - REPO="gh::default::https://maven.pkg.github.com/${GITHUB_REPOSITORY}" - mvn deploy -DaltReleaseDeploymentRepository="${REPO}" -DaltSnapshotDeploymentRepository="${REPO}" diff --git a/pom.xml b/pom.xml index 78455b0..be0f67d 100644 --- a/pom.xml +++ b/pom.xml @@ -29,14 +29,6 @@ - - - github - GitHub Packages - https://maven.pkg.github.com/HealPoint/j3270Server - - -