Skip to content

Commit af5eb3d

Browse files
authored
GH actions (#98)
GH actions
1 parent cf1a0e7 commit af5eb3d

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/build.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Pre-release
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- labeled
10+
- unlabeled
11+
push:
12+
branches:
13+
- "version/*"
14+
- "release/*"
15+
- "testing/*"
16+
workflow_dispatch:
17+
18+
permissions:
19+
contents: read
20+
statuses: write
21+
packages: write
22+
23+
jobs:
24+
build:
25+
uses: ldtteam/operapublicacreator/.github/workflows/gradle.build.yaml@main
26+
with:
27+
java: 17
28+
secrets: inherit
29+
pre-release:
30+
uses: ldtteam/operapublicacreator/.github/workflows/gradle.prerelease.yaml@main
31+
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')
32+
with:
33+
java: 17
34+
secrets: inherit

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- "version/*"
7+
- "release/*"
8+
- "testing/*"
9+
10+
permissions:
11+
contents: write
12+
statuses: write
13+
14+
jobs:
15+
release:
16+
uses: ldtteam/operapublicacreator/.github/workflows/gradle.publish.yaml@main
17+
with:
18+
java: 17
19+
curse_release_type: ${{ contains(github.ref, 'release') && 'release' || 'beta' }}
20+
secrets: inherit

0 commit comments

Comments
 (0)