Skip to content

feat: initial release #5

feat: initial release

feat: initial release #5

Workflow file for this run

name: CI Release
on:
push:
branches:
- main
jobs:
build_frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout frontend
uses: actions/[email protected]
with:
sparse-checkout: 'frontend'
- name: Install PNPM
uses: pnpm/[email protected]
with:
package_json_file: 'frontend/package.json'
- name: Setup node env
uses: actions/[email protected]
with:
cache: 'pnpm'
check-latest: true
node-version: 'lts/*'
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: 'frontend'
- name: Lint code
run: pnpm prepare && pnpm lint
working-directory: 'frontend'
- name: Build frontend
run: quasar build
working-directory: 'frontend'
- name: Upload frontend artifact
uses: actions/[email protected]
with:
name: frontend-build
path: frontend/dist/spa/
build_backend:
runs-on: ubuntu-latest
steps:
- name: Checkout backend
uses: actions/[email protected]
with:
sparse-checkout: 'backend'
- name: setup jdk 17
uses: actions/setup-java@v3
with:
cache: 'gradle'
distribution: 'temurin'
java-version: '21'
- name: Create needed folders for the frontend artifact
run: |
mkdir -p src/main/resources/static/
mkdir -p src/main/resources/templates/
working-directory: 'backend'
- name: Download frontend artifact
uses: actions/[email protected]
with:
name: frontend-build
path: backend/src/main/resources/static/
- name: Move index.html from static to templates
run: gradle bootJar
working-directory: 'backend'
- name: Upload backend artifact
uses: actions/[email protected]
with:
name: backend-build
path: backend/build/libs/openapi-catalog-*.jar
release:
runs-on: ubuntu-latest
steps:
- name: Download backend artifact
uses: actions/[email protected]
with:
name: backend-build
path: build/libs/
- name: Upload release
uses: softprops/action-gh-release@v2
with:
files: build/libs/
make_latest: true