-
-
Notifications
You must be signed in to change notification settings - Fork 40
52 lines (44 loc) · 1.66 KB
/
Copy pathbuild.yml
File metadata and controls
52 lines (44 loc) · 1.66 KB
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
name: Build
on:
push:
branches:
- main
- release/**
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
job_build_upload:
name: Build and upload distribution artifact
runs-on: ubuntu-latest
steps:
- name: Checkout current commit (${{ github.sha }})
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Gradle
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # pin@v6
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Set up Java
uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5
with:
distribution: 'temurin'
java-version: '17'
- name: Build Gradle Plugin, Kotlin Compiler Plugin, and Snapshots Runtime distribution artifacts
run: ./gradlew assemble
- name: Archive artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: ${{ github.sha }}
path: |
./*/build/distributions/*.zip
- name: Verify artifact contents
shell: bash
run: |
zipfile=$(ls -1 plugin-build/build/distributions | grep -v "PluginMarker" | grep -v ".tar")
filename=${zipfile/\.zip/}
unzip plugin-build/build/distributions/$filename.zip -d /tmp
find /tmp/$filename | grep "pom-default.xml"
unzip /tmp/$filename/$filename.jar -d /tmp/jar/
find /tmp/jar | grep "bin/sentry-cli"
cat /tmp/$filename/pom-default.xml | grep -v "dev.gradleplugins"