-
Notifications
You must be signed in to change notification settings - Fork 24
47 lines (44 loc) · 1.4 KB
/
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
name: Release
on:
push:
tags:
- '**'
jobs:
build:
strategy:
matrix:
# macos-12 is for the x64 (intel) architecture
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
os: [ macos-12, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# TODO: replace this once https://github.com/actions/setup-java/pull/637 gets merged.
- uses: gmitch215/setup-java@6d2c5e1f82f180ae79f799f0ed6e3e5efb4e664d
with:
distribution: 'jetbrains'
java-version: 17
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: gradle/actions/setup-gradle@v3
- run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
name: distribution-${{ matrix.os }}
if-no-files-found: error
path: |
build/compose/binaries/main-release/dmg/kotlin-explorer-*.dmg
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'romainguy'
needs: build
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Create release and upload dists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" **/*.dmg -t "${{ github.ref_name }}" --draft --generate-notes