Skip to content

Commit

Permalink
Added GitHub Actions workflow to deploy JavaDoc and online version
Browse files Browse the repository at this point in the history
  • Loading branch information
lfgaleota committed Mar 18, 2024
1 parent 0c428f4 commit 1832732
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 70 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/publish-javadoc-and-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy Javadoc and Artifact for online version to GitHub Pages

on:
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
cache: maven

- name: Generate Javadoc with Maven
run: mvn javadoc:aggregate
shell: bash

- name: Generate Javadoc with Maven
run: mvn javadoc:aggregate
shell: bash

- name: Package and verify project with Maven
run: mvn --batch-mode --update-snapshots verify package
shell: bash

- name: Copy generated artifact to website
run: cp target/*.jar target/site
shell: bash

- name: Deploy website to GitHub Pages
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
clean: true
clean-exclude: |
index.html
run.html
folder: target/site
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .utility/push-javadoc-to-gh-pages.sh

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ECE-Hopital [![Build Status](https://www.travis-ci.com/lfgaleota/ECE-Hopital.svg?token=ELbB1pLDWUVazPTNRLJJ&branch=master)](https://www.travis-ci.com/lfgaleota/ECE-Hopital)
# ECE-Hopital

Projet d'informatique du second semestre pour la première année du cycle ingénieur de l'ECE.

Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<finalName>${project.artifactId}-${project.version}</finalName>
</configuration>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 1832732

Please sign in to comment.