Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
David Gomes authored and David Gomes committed Jan 8, 2022
2 parents 3f5d996 + 3200c52 commit 1d491d9
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build Quarkus

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Validate tests
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
with:
arguments: "test"
- name: Build Quarkus
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
with:
arguments: "quarkusBuild"
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Quarkus package

on:
push:
branches: [ main ]

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Validate tests
uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021
with:
arguments: "test"

- name: Build Java Quarkus
run: "./gradlew quarkusBuild"
- name: Archive Java build
uses: thedoctor0/zip-release@master
with:
filename: quarkusPackage.zip
directory: build/quarkus-app

- name: Upload archive
uses: ncipollo/[email protected]
with:
artifacts: "build/quarkus-app/quarkusPackage.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
removeArtifacts: true
artifactErrorsFailBuild: true
prerelease: true
name: latest
tag: latest

0 comments on commit 1d491d9

Please sign in to comment.