Skip to content

v0.8.2

v0.8.2 #27

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
cache-dependency-path: |
fentwums-netlist-reader-server/pom.xml
fentwums-netlist-reader-service/pom.xml
- name: Build with Maven
run: mvn -B package spring-boot:repackage install --file pom.xml
- name: Create staging directory
run: mkdir fentwums-netlist-reader
- name: Move assets to staging directory
run: cp fentwums-netlist-reader-server/target/*exec.jar fentwums-netlist-reader && mkdir fentwums-netlist-reader/THIRD-PARTY-LICENSES && cp fentwums-netlist-reader-server/target/generated-resources/licenses/* fentwums-netlist-reader/THIRD-PARTY-LICENSES && cp fentwums-netlist-reader-server/target/generated-sources/THIRD-PARTY-LICENSES/META-INF/*.txt fentwums-netlist-reader && mkdir fentwums-netlist-reader/blackbox-descriptions && cp fentwums-netlist-reader-server/target/blackbox-descriptions/*.json fentwums-netlist-reader/blackbox-descriptions
- name: Create tar
run: tar -czf fentwums-netlist-reader-server-${{ github.ref_name }}.tar.gz fentwums-netlist-reader/*
- name: Check for existence of archive
run: ls -lsha && ls -lsha fentwums-netlist-reader
- name: Show archive contents
run : tar -tvf fentwums-netlist-reader-server-${{ github.ref_name }}.tar.gz
- name: Release artifact
uses: ncipollo/release-action@v1
with:
allowUpdates: True
replacesArtifacts: false
generateReleaseNotes: true
artifacts: "fentwums-netlist-reader-server-${{ github.ref_name }}.tar.gz,fentwums-netlist-reader/*exec.jar"
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
# - name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6