File tree Expand file tree Collapse file tree 2 files changed +34
-24
lines changed
Expand file tree Collapse file tree 2 files changed +34
-24
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy GitHub Pages
2+
3+ on :
4+ # Run weekly on sunday at 23:00 UTC (arbitrary)
5+ schedule :
6+ - cron : ' 00 23 * * SUN'
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ steps :
14+ - uses : actions/checkout@v3
15+ with :
16+ ref : develop
17+
18+ - name : Set up JDK 1.8
19+ uses : actions/setup-java@v1
20+ with :
21+ java-version : 1.8
22+
23+ - name : Build Project
24+ run : mvn clean install
25+
26+ - name : Build JavaDoc
27+ run : mvn site site:stage -Pjavadoc -DskipTests
28+
29+ - name : Deploy to gh-pages
30+ uses : peaceiris/actions-gh-pages@v3
31+ with :
32+ github_token : ${{ secrets.GITHUB_TOKEN }}
33+ publish_dir : ./target/staging
Original file line number Diff line number Diff line change 137137 </site >
138138 <snapshotRepository >
139139 <id >release_artifacts_gradoop</id >
140- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
140+ <url >https://oss.sonatype.org/content/repositories/snapshots/org/gradoop </url >
141141 </snapshotRepository >
142142 <repository >
143143 <id >release_artifacts_gradoop</id >
189189 <plugin .maven-gpg.version>1.6</plugin .maven-gpg.version>
190190 <plugin .maven-nexus-staging.version>1.6.7</plugin .maven-nexus-staging.version>
191191 <plugin .maven-site.version>3.7.1</plugin .maven-site.version>
192- <plugin .maven-scm-publish.version>3.0.0</plugin .maven-scm-publish.version>
193192 <plugin .maven-jacoco.version>0.8.1</plugin .maven-jacoco.version>
194193 <plugin .maven-wagon-ssh.version>3.0.0</plugin .maven-wagon-ssh.version>
195194 </properties >
275274 </dependency >
276275 </dependencies >
277276 </plugin >
278- <plugin >
279- <artifactId >maven-scm-publish-plugin</artifactId >
280- <version >${plugin.maven-scm-publish.version} </version >
281- <inherited >false</inherited >
282- <configuration >
283- <serverId >github</serverId >
284- <pubScmUrl >scm:git:https://github.com/dbs-leipzig/gradoop.git</pubScmUrl >
285- <scmBranch >gh-pages</scmBranch >
286- <checkinComment >Updated Site via Maven</checkinComment >
287- <content >${project.build.directory} /staging</content >
288- <siteOutputEncoding >UTF-8</siteOutputEncoding >
289- <tryUpdate >true</tryUpdate >
290- </configuration >
291- <executions >
292- <execution >
293- <goals >
294- <goal >publish-scm</goal >
295- </goals >
296- <phase >site-deploy</phase >
297- </execution >
298- </executions >
299- </plugin >
300277 </plugins >
301278 </build >
302279 </profile >
You can’t perform that action at this time.
0 commit comments