Skip to content

Commit

Permalink
github: Add build workflow, build on every push
Browse files Browse the repository at this point in the history
First implementation, might need some fine tuning.

Signed-off-by: Florian Bezdeka <[email protected]>
  • Loading branch information
fbezdeka committed Jul 31, 2024
1 parent 89f335a commit 04bf090
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build

on:
push:

jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 7.4

- name: Execute Gradle build
run: gradle build -Pversion=$(git describe --dirty --tags --always)

- name: Upload build reports
uses: actions/upload-artifact@v3
if: always()
with:
name: Intellij Plugin
path: build/libs

0 comments on commit 04bf090

Please sign in to comment.