diff --git a/.github/workflows/generate-sdks.yml b/.github/workflows/generate-sdks.yml index a830d22..0f5fea7 100644 --- a/.github/workflows/generate-sdks.yml +++ b/.github/workflows/generate-sdks.yml @@ -125,14 +125,14 @@ jobs: cd java-client mkdir -p .github/workflows/ 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 + printf '%s\n' 'name: Upload Java Maven Package' 'on:' ' release:' ' types: [created]' 'jobs:' ' deploy:' ' runs-on: ubuntu-latest' ' permissions:' ' contents: read' ' packages: write' ' 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.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.openapitoolsjackson-databind-nullable0.2.6|g' pom.xml - sed -i 's|| githubGitHub Packageshttps://maven.pkg.github.com/octocat/hello-world|g' pom.xml + sed -i 's|| githubGitHub Packageshttps://maven.pkg.github.com/dofusdude/dofusdude-java|g' pom.xml sed -i 's/\\"/"/g' README.md cd ..