Skip to content

feat: initial release #2

feat: initial release

feat: initial release #2

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]
working-directory: 'frontend'

Check failure on line 16 in .github/workflows/ci_release.yml

View workflow run for this annotation

GitHub Actions / CI Release

Invalid workflow file

The workflow is not valid. .github/workflows/ci_release.yml (Line: 16, Col: 9): Unexpected value 'working-directory' .github/workflows/ci_release.yml (Line: 23, Col: 9): Unexpected value 'working-directory'
- name: Setup node env
uses: actions/[email protected]
with:
cache: 'pnpm'
check-latest: true
node-version: 'lts/*'
working-directory: 'frontend'
- 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: dist/spa/
working-directory: 'frontend'
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'
working-directory: 'backend'
- 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: src/main/resources/static/
working-directory: 'backend'
- 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: build/libs/openapi-catalog-*.jar
working-directory: 'backend'
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