Skip to content

Commit

Permalink
try to adjust code for GHP
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Jan 16, 2024
1 parent 61f9257 commit 849d728
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ jobs:
cache: maven
check-latest: true
server-id: github
- name: fix artifactid & groupid in pom
run: sed -e 's/artifactId>Getargv</artifactId>getargv</g' -e 's/groupId>cam.narzt.getargv</groupId>github.getargv</g' -i '' pom.xml
- name: fix artifactid for github package registry
run: make ghp
working-directory: getargv.java
- name: Publish package to GitHub Packages
run: mvn -DuseGithub=true --batch-mode deploy
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ release:

install:
mvn install

ghp:
sed -e 's/artifactId>Getargv</artifactId>getargv</g' -i '' pom.xml
sed -e 's/Getargv/getargv/g' -i '' src/main/java/cam/narzt/getargv/Getargv.java src/main/native/cam_narzt_getargv_Getargv.c src/main/java/cam/narzt/getargv/Main.java
mv src/main/java/cam/narzt/getargv/{G,g}etargv.java
mv src/main/native/cam_narzt_getargv_{G,g}etargv.c

0 comments on commit 849d728

Please sign in to comment.