Skip to content

Commit

Permalink
ap accidently reverted this
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Oct 24, 2023
1 parent d0d44d0 commit 1dc0085
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Java CI

on: [push]
on:
push:

jobs:
build:
Expand All @@ -15,7 +16,51 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
# NEATO ! CACHE !!!!
cache: 'maven'

- name: Dependency Test
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
- name: Build with Maven
run: mvn --batch-mode -Dtest=!**/OpenCV* test -q

- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch

- name: Package with Maven
run: "mvn package -DskipTests -Dversion=${{ steps.version.outputs.version }} -q"

# - name: Fake Build
# run: |
# mkdir -p target
# echo ${{ github.sha }} > ./target/myrobotlab.zip

- name: Pre Release
if: github.ref != 'refs/heads/develop'
id: prerelease
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
prerelease: true
files: ./target/myrobotlab.zip
name: "Pre ${{ steps.version.outputs.version }} Nixie"
tag_name: ${{ steps.version.outputs.version }}
generate_release_notes: true
body_path: ./release-template.md

- name: Release
if: github.ref == 'refs/heads/develop'
id: release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
files: ./target/myrobotlab.zip
name: "${{ steps.version.outputs.version }} Nixie"
tag_name: ${{ steps.version.outputs.version }}
generate_release_notes: true
body_path: ./release-template.md

0 comments on commit 1dc0085

Please sign in to comment.