Skip to content

Merge pull request #572 from Heigvd/dev #405

Merge pull request #572 from Heigvd/dev

Merge pull request #572 from Heigvd/dev #405

Workflow file for this run

name: Build gh-pages
on:
push:
branches: [main]
jobs:
build-site:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13
env:
POSTGRES_USER: colab_test
POSTGRES_PASSWORD: 1234
POSTGRES_DB: colab_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
mailhog:
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: |
colab-webapp/yarn.lock
colab-tests/src/test/node/yarn.lock
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 11
cache: 'maven'
- name: Maven package without tests
run: mvn -Dreporting -B -DskipTests install
- name: Maven build Site
run: mvn -Dreporting -B site site:stage
- name: Push GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: target/staging