From af5eb3d3612b8d1f996fed2a9d70da40aa0f02fa Mon Sep 17 00:00:00 2001 From: Thom van den Akker Date: Fri, 23 Aug 2024 23:10:16 +0200 Subject: [PATCH] GH actions (#98) GH actions --- .github/workflows/build.yaml | 34 ++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 20 ++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..5e5c0701 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,34 @@ +name: Build and Pre-release + +on: + pull_request: + types: + - opened + - edited + - synchronize + - labeled + - unlabeled + push: + branches: + - "version/*" + - "release/*" + - "testing/*" + workflow_dispatch: + +permissions: + contents: read + statuses: write + packages: write + +jobs: + build: + uses: ldtteam/operapublicacreator/.github/workflows/gradle.build.yaml@main + with: + java: 17 + secrets: inherit + pre-release: + uses: ldtteam/operapublicacreator/.github/workflows/gradle.prerelease.yaml@main + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && contains( github.event.pull_request.labels.*.name, 'Pre-release') + with: + java: 17 + secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..2f78ef09 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release + +on: + push: + branches: + - "version/*" + - "release/*" + - "testing/*" + +permissions: + contents: write + statuses: write + +jobs: + release: + uses: ldtteam/operapublicacreator/.github/workflows/gradle.publish.yaml@main + with: + java: 17 + curse_release_type: ${{ contains(github.ref, 'release') && 'release' || 'beta' }} + secrets: inherit