From 4ccb2daf5c5190bfcc5dd073679ba55e7b410a4e Mon Sep 17 00:00:00 2001 From: stelzo Date: Mon, 1 Apr 2024 19:08:23 +0200 Subject: [PATCH] revert to gh packages --- .github/workflows/generate-sdks.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/generate-sdks.yml b/.github/workflows/generate-sdks.yml index 6badbdd..36caa21 100644 --- a/.github/workflows/generate-sdks.yml +++ b/.github/workflows/generate-sdks.yml @@ -124,19 +124,16 @@ jobs: run: | cd java-client mkdir -p .github/workflows/ - printf '%s\n' 'name: Upload Java Maven Package' 'on:' ' release:' ' types: [created]' 'permissions:' ' contents: read' ' packages: write' 'jobs:' ' deploy:' ' runs-on: ubuntu-latest' ' steps:' ' - uses: actions/checkout@v4' ' - name: Set up Java' ' uses: actions/setup-java@v4' ' with:' ' java-version: "17"' ' distribution: "temurin"' ' - name: Release Maven package' ' uses: samuelmeuli/action-maven-publish@v1.4.0' ' with:' ' maven_profiles: deploy, verify' ' gpg_private_key: secrets.GPG_PRIVATE' ' gpg_passphrase: ""' ' nexus_username: secrets.OSSRH_USERNAME' ' nexus_password: secrets.OSSRH_TOKEN' > .github/workflows/publish.yml - sed -i 's/secrets.OSSRH_TOKEN/\$\{\{secrets.OSSRH_TOKEN\}\}/g' .github/workflows/publish.yml - sed -i 's/secrets.OSSRH_USERNAME/\$\{\{secrets.OSSRH_USERNAME\}\}/g' .github/workflows/publish.yml - sed -i 's/secrets.GPG_KEYNAME/\$\{\{secrets.GPG_KEYNAME\}\}/g' .github/workflows/publish.yml - sed -i 's/secrets.GPG_PRIVATE/\$\{\{secrets.GPG_PRIVATE\}\}/g' .github/workflows/publish.yml + printf '%s\n' 'name: Build' 'on:' ' push:' ' branches: [ main ]' ' pull_request:' ' branches: [ main ]' 'jobs:' ' build:' ' runs-on: ubuntu-latest' ' steps:' ' - uses: actions/checkout@v4' ' - name: Set up Java' ' uses: actions/setup-java@v4' ' with:' ' java-version: "17"' ' distribution: "temurin"' ' - name: Verify and test' ' run: mvn --batch-mode --update-snapshots verify && mvn test' > .github/workflows/build.yml + printf '%s\n' 'name: Upload Java Maven Package' 'on:' ' release:' ' types: [created]' 'permissions:' ' contents: read' ' packages: write' 'jobs:' ' deploy:' ' runs-on: ubuntu-latest' ' steps:' ' - uses: actions/checkout@v4' ' - name: Set up Java' ' uses: actions/setup-java@v4' ' with:' ' java-version: "17"' ' distribution: "temurin"' ' - name: Release Maven package' ' run: mvn --batch-mode deploy' ' env:' ' GITHUB_TOKEN: secrets.GITHUB_TOKEN' > .github/workflows/publish.yml + sed -i 's/secrets.GITHUB_TOKEN/\$\{\{secrets.GITHUB_TOKEN\}\}/g' .github/workflows/publish.yml sed -i 's||https://github.com/dofusdude/dofusdude-java|g' pom.xml sed -i 's||scm:git:git@github.com:dofusdude/dofusdude-java.gitscm:git:git@github.com:dofusdude/dofusdude-java.githttps://github.com/dofusdude/dofusdude-java/tree/mainGNU General Public License 3https://www.gnu.org/licenses/gpl-3.0.txtrepostelzoChristopher Siehhttps://github.com/stelzodeveloper|g' pom.xml sed -i 's||org.sonatype.centralcentral-publishing-maven-plugin0.4.0truecentraltruetrue|g' pom.xml sed -i 's||org.apache.maven.pluginsmaven-javadoc-plugin3.6.3attach-javadocsjar|g' pom.xml sed -i 's||org.apache.maven.pluginsmaven-source-plugin3.3.0attach-sourcesjar|g' pom.xml - sed -i 's||org.apache.maven.pluginsmaven-gpg-plugin3.2.2sign-artifactsverifysign--pinentry-modeloopback|g' pom.xml sed -i 's|| org.openapitoolsjackson-databind-nullable0.2.6|g' pom.xml - sed -i 's|| centralCentral Repository Centralhttps://oss.sonatype.org/service/local/staging/deploy/maven2/|g' pom.xml + sed -i 's|| githubGitHub Packageshttps://maven.pkg.github.com/octocat/hello-world|g' pom.xml sed -i 's/\\"/"/g' README.md cd ..