Skip to content

Commit

Permalink
Merge pull request #33 from Thodor12/patch-1
Browse files Browse the repository at this point in the history
GH actions for 1.20.1
  • Loading branch information
marchermans authored Aug 27, 2024
2 parents 779a5ae + 8dc4a88 commit 8c0779e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8c0779e

Please sign in to comment.