File tree Expand file tree Collapse file tree 3 files changed +30
-5
lines changed Expand file tree Collapse file tree 3 files changed +30
-5
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,13 @@ jobs:
40
40
success()
41
41
&& github.repository_owner == 'jsonurl'
42
42
&& github.ref == 'refs/heads/master'
43
- # '-Dscmpublish.dryRun=true'
44
43
run : >
45
- mvn '-Dscmpublish.checkinComment=doc: Update by action ${{ github.workflow }}.${{ github.job }}/${{ github.run_id }} on behalf of ${{ github.actor }} for ${{ github.event_name }} ${{ github.sha }}'
46
- '-Dscmpublish.pubScmUrl=scm:git:https://github.com/${{ github.repository }}.git'
47
- -B -Ppublish-javadoc-site javadoc:aggregate scm-publish:publish-scm
44
+ script/deploy_ghpages.sh
45
+ 'doc: Update by action ${{ github.workflow }}.${{ github.job }}/${{ github.run_id }} on behalf of ${{ github.actor }} for ${{ github.event_name }} ${{ github.sha }}'
46
+ 'scm:git:https://github.com/${{ github.repository }}.git'
47
+ shell : bash
48
+ env :
49
+ GH_ACTION_KEY : ${{ secrets.GH_ACTION_KEY }}
48
50
49
51
matrix-build :
50
52
needs : artifact
Original file line number Diff line number Diff line change 90
90
<scmBranch >gh-pages</scmBranch >
91
91
<content >${project.reporting.outputDirectory} /apidocs</content >
92
92
<checkinComment >doc: update by maven-scm-publish-plugin</checkinComment >
93
- <serverId >github</serverId >
93
+ <!-- < serverId>github</serverId> -- >
94
94
<ignorePathsToDelete >
95
95
<ignorePathsToDelete >.gitignore</ignorePathsToDelete >
96
96
<ignorePathsToDelete >.gitattributes</ignorePathsToDelete >
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ comment=" $1 "
4
+ url=" $2 "
5
+
6
+ git config --global user.email " $GITHUB_ACTOR "
7
+ git config --global user.name " ci action"
8
+
9
+ mkdir -p ~ /.ssh
10
+ chmod 700 ~ /.ssh
11
+ cat > ~/.ssh/id_ed25519 << EOT
12
+ -----BEGIN OPENSSH PRIVATE KEY-----
13
+ $GH_ACTION_KEY
14
+ -----END OPENSSH PRIVATE KEY-----
15
+ EOT
16
+ chmod 600 ~ /.ssh/id_ed25519
17
+
18
+ # "-Dscmpublish.pubScmUrl=$url" \
19
+ # '-Dscmpublish.dryRun=true' \
20
+ # "-Dusername=git" \
21
+ # "-Dpassword=$GITHUB_TOKEN" \
22
+ exec mvn " -Dscmpublish.checkinComment=$comment " \
23
+ -B -Ppublish-javadoc-site javadoc:aggregate scm-publish:publish-scm
You can’t perform that action at this time.
0 commit comments