forked from etiennestuder/teamcity-build-scan-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.95 KB
/
development-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
name: Create Development Release
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
development_release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out project
uses: actions/checkout@v3
- name: Set up JDK 6
uses: actions/setup-java@v3
with:
java-version: '6.0.119'
distribution: 'zulu'
architecture: x64
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'liberica'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate-and-submit
- name: Build and bundle plugin artifact
run: ./gradlew clean build -Porg.gradle.java.installations.fromEnv=JAVA_HOME_6_0_119_X64 -PjavaCompilerVersion=6
env:
DEVELOCITY_TEST_INSTANCE: https://etiennestuder.gradle-enterprise.cloud
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
- name: Create GitHub release
run: ./gradlew githubRelease
env:
TEAMCITY_PLUGIN_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
GITHUB_DEPENDENCY_GRAPH_ENABLED: false
- name: Upload plugin artifact
uses: actions/upload-artifact@v3
with:
name: teamcity-build-scan-plugin
path: build/distributions/teamcity-build-scan-plugin-*.zip