-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.23 KB
/
artifacts.yaml
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
name: Artifacts
on:
push:
branches-ignore:
- main
tags:
- v*
jobs:
release:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'corretto'
- uses: actions/checkout@v4
with:
submodules: true
- name: Set Version - Main
if: ${{startsWith(github.ref, 'refs/tags/v')}}
run: |
echo "ORG_GRADLE_PROJECT_buildVersion=$(echo '${{github.ref}}' | sed -e 's/refs\/tags\/v//')" >> $GITHUB_ENV
- name: Set Version - Branch
if: ${{startsWith(github.ref, 'refs/heads/')}}
run: |
echo "ORG_GRADLE_PROJECT_buildVersion=${{github.run_number}}-$(echo '${{github.ref}}' | sed -e 's/refs\/heads\///' | sed -e 's/[^a-zA-Z0-9]/_/g')-$(echo ${{github.sha}} | cut -c 1-8)" >> $GITHUB_ENV
- name: Gradle build
run: chmod +x ./gradlew && ./gradlew :buildPlugin
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: Qt6Renderer-${{env.ORG_GRADLE_PROJECT_buildVersion}}
path: ${{github.workspace}}/build/idea-sandbox/plugins/*