Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test build run on PR #10137

Closed
wants to merge 12 commits into from
Closed
31 changes: 15 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
name: Build and Test PRs or General Branches
name: Build and Pre-release

on:
pull_request:
types:
- synchronize
- opened
- ready_for_review
- reopened
- edited
- synchronize
- labeled
- unlabeled
push:
branches:
- 'feature/**'
- 'bugfix/**'
- 'hotfix/**'
- 'fix/**'
- 'features/**'
workflow_dispatch:

permissions:
contents: write
contents: read
statuses: write
packages: write

jobs:
release:
uses: ldtteam/operapublicacreator/.github/workflows/gradle.publish.yaml@main
build:
uses: Thodor12/operapublicacreator/.github/workflows/gradle.build.yaml@18f3f7d0191d1a567efcd04dbab91253407db79a
Thodor12 marked this conversation as resolved.
Show resolved Hide resolved
with:
java: 17
secrets: inherit
pre-release:
uses: Thodor12/operapublicacreator/.github/workflows/gradle.prerelease.yaml@18f3f7d0191d1a567efcd04dbab91253407db79a
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:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
secrets: inherit
17 changes: 5 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: Release

on:
push:
branches: [
"version/*",
"release/*",
"testing/*",
]
branches:
- "version/*"
- "release/*"
- "testing/*"

permissions:
contents: write
Expand All @@ -18,10 +17,4 @@ jobs:
with:
java: 17
curse_release_type: ${{ contains(github.ref, 'release') && 'release' || 'beta' }}
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
CURSE_API_KEY: ${{ secrets.CURSE_API_KEY }}
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
secrets: inherit