File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,30 +22,18 @@ jobs:
2222 - name : Grant execute permission for gradlew
2323 run : chmod +x gradlew
2424
25- - name : Publish Maven artifacts
26- run : ./gradlew publishToMavenLocal
25+ - name : Publish Maven artifacts to local repo
26+ run : ./gradlew publish
2727 env :
2828 GROUP_ID : fr.sandro642.github
2929 ARTIFACT_ID : ConnectorAPI
3030 VERSION : 0.1.0
3131
32- - name : Clone GitHub Pages repository
33- run : |
34- git clone --depth 1 https://github.com/sandro642/sandro642.github.io.git gh-pages
35- cd gh-pages
36- git checkout main
37-
38- - name : Copy Maven artifacts to connectorapi/jar
39- run : |
40- rm -rf gh-pages/connectorapi/jar/*
41- mkdir -p gh-pages/connectorapi/jar/fr/sandro642/github/ConnectorAPI/0.1.0
42- cp -r ~/.m2/repository/fr/sandro642/github/ConnectorAPI/0.1.0/* gh-pages/connectorapi/jar/fr/sandro642/github/ConnectorAPI/0.1.0/
43-
44- - name : Commit and push changes
45- run : |
46- cd gh-pages
47- git config user.name "GitHub Actions"
48- git config user.email "actions@github.com"
49- git add connectorapi/jar
50- git commit -m "Update JAR and POM for ConnectorAPI" || echo "No changes to commit"
51- git push https://${{ secrets.GH_TOKEN }}@github.com/sandro642/sandro642.github.io.git main
32+ - name : Deploy to GitHub Pages
33+ uses : JamesIves/github-pages-deploy-action@v4
34+ with :
35+ token : ${{ secrets.GH_TOKEN }}
36+ repository-name : sandro642/sandro642.github.io
37+ branch : main
38+ folder : build/repo
39+ target-folder : connectorapi/jar
You can’t perform that action at this time.
0 commit comments