Skip to content

Commit 5f1b5d5

Browse files
authored
[#1574] Added Deploy of Gradoop-Site and Javadoc to Github Action (#1577)
fixes #1574
1 parent d87762d commit 5f1b5d5

File tree

2 files changed

+34
-24
lines changed

2 files changed

+34
-24
lines changed

.github/workflows/gh-pages.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

pom.xml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
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>
@@ -189,7 +189,6 @@
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>
@@ -275,28 +274,6 @@
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>

0 commit comments

Comments
 (0)