Skip to content

Build and Deploy

Build and Deploy #87

Workflow file for this run

name: Build and Deploy
on:
workflow_dispatch:
inputs:
phileas_tag:
description: Tag to build and deploy
required: true
default: main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
with:
lfs: true
ref: ${{ github.event.inputs.phileas_tag }}
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: adopt
architecture: x64
cache: maven
- name: Build and Deploy
run: mvn --batch-mode --update-snapshots deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}