Skip to content

Commit

Permalink
Publish Javadoc to GitHub Pages on Release
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertuya committed Aug 24, 2022
1 parent 8b37095 commit f3b6c1c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Deploy javadoc to Pages

on:
release:
types: [created]
# Runs on pushes targeting the default branch
#push:
# branches: ["main"]
Expand Down Expand Up @@ -32,11 +34,19 @@ jobs:
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Select Java Version
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- name: Build javadoc
run: mvn install -DskipTests=true -Dmaven.test.failure.ignore=true -U --no-transfer-progress
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: '.'
path: 'target/site/apidocs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ to make easier its use as a base template project in SE development lab practice

Any edit affecting the source code must be done in the `samples-test-java` project and then
this reduced version generated as indicated in
[samples-test-java/CONTRIBUTING.md](https://github.com/javiertuya/samples-test-java/CONTRIBUTING.md)
[samples-test-java/CONTRIBUTING.md](https://github.com/javiertuya/samples-test-java/blob/main/CONTRIBUTING.md)

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[![Build Status](https://github.com/javiertuya/samples-test-dev/actions/workflows/test.yml/badge.svg)](https://github.com/javiertuya/samples-test-dev/actions/workflows/test.yml)
[![Javadoc](https://img.shields.io/badge/%20-javadoc-blue)](https://javiertuya.github.io/samples-test-dev/)

# samples-test-dev

Este proyecto es utilizado como proyecto base para el desarrollo y a modo de ejemplo para ilustrar algunos aspectos del desarrollo y automatización de pruebas para las asignaturas relacionadas con ingenieria del software, sistemas de información y pruebas de software.

[Descargar la última versión](https://github.com/javiertuya/samples-test-dev/releases)
[Descargar la última versión](https://github.com/javiertuya/samples-test-dev/releases) -
[Ver más detalles en el javadoc](https://javiertuya.github.io/samples-test-dev/)

## Contenido

Expand Down

0 comments on commit f3b6c1c

Please sign in to comment.