-
Notifications
You must be signed in to change notification settings - Fork 49
64 lines (63 loc) · 2.1 KB
/
linux-build-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build and Release [Linux]
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Compilation
uses: gradle/gradle-build-action@v2
env:
GRADLE_OPTS: -Dfile.encoding=windows-1252 -Ddevelocity.deprecation.captureOrigin=true
with:
arguments: classes
- name: Validate plugin
uses: gradle/gradle-build-action@v2
env:
GRADLE_OPTS: -Dfile.encoding=windows-1252
with:
arguments: validatePlugins
- name: Unit tests
uses: gradle/gradle-build-action@v2
env:
GRADLE_OPTS: -Dfile.encoding=windows-1252
with:
arguments: test
- name: Integration tests
uses: gradle/gradle-build-action@v2
env:
GRADLE_OPTS: -Dfile.encoding=windows-1252
with:
arguments: integrationTest
- name: Functional tests
uses: gradle/gradle-build-action@v2
env:
GRADLE_OPTS: -Dfile.encoding=windows-1252
with:
arguments: functionalTest
- name: Assemble artifact
uses: gradle/gradle-build-action@v2
env:
GRADLE_OPTS: -Dfile.encoding=windows-1252
with:
arguments: assemble
- name: Store artifact
uses: actions/upload-artifact@v4
with:
name: gradle-clover-plugin.jar
path: build/libs/*.jar
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: gradle/gradle-build-action@v2
env:
GRADLE_OPTS: -Dfile.encoding=windows-1252
PLUGIN_PORTAL_KEY: ${{ secrets.PLUGIN_PORTAL_KEY }}
PLUGIN_PORTAL_SECRET: ${{ secrets.PLUGIN_PORTAL_SECRET }}
with:
arguments: publishPlugins gitPublishPush -Pgradle.publish.key=${{ secrets.PLUGIN_PORTAL_KEY }} -Pgradle.publish.secret=${{ secrets.PLUGIN_PORTAL_SECRET }} -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GH_TOKEN }} -is