Skip to content

Commit

Permalink
fix unix and mac sed diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Mar 31, 2024
1 parent 0bab84f commit e8446d4
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/generate-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,21 +128,8 @@ jobs:
printf '%s\n' 'name: Go' 'on:' ' push:' ' branches: [ main ]' ' pull_request:' ' branches: [ main ]' 'jobs:' ' build:' ' runs-on: ubuntu-latest' ' steps:' ' - uses: actions/checkout@v3' ' - 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: Publish 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
ls -l
sed -i '' '/<\/dependencies>/i \
<dependency>\
<groupId>org.openapitools<\/groupId>\
<artifactId>jackson-databind-nullable<\/artifactId>\
<version>0.2.6<\/version>\
<\/dependency>' pom.xml
sed -i '' '/<\/project>/i \
<distributionManagement>\
<repository>\
<id>github</id>\
<name>GitHub dofusdude Apache Maven Packages</name>\
<url>https://maven.pkg.github.com/dofusdude/dofusdude-java</url>\
</repository>\
</distributionManagement>' pom.xml
sed -i 's/<\/dependencies>/ <dependency><groupId>org.openapitools<\/groupId><artifactId>jackson-databind-nullable<\/artifactId><version>0.2.6<\/version><\/dependency><\/dependencies>/g' pom.xml
sed -i 's/<\/project>/ <distributionManagement><repository><id>github</id><name>GitHub dofusdude Apache Maven Packages</name><url>https://maven.pkg.github.com/dofusdude/dofusdude-java</url></repository></distributionManagement><\/project>/g' pom.xml
sed -i 's/\\"/"/g' README.md
cd ..
Expand Down

0 comments on commit e8446d4

Please sign in to comment.