-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 1.08 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
name: release
on:
workflow_dispatch:
inputs:
version:
description: Release version
required: true
jobs:
release:
runs-on: macos-14
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up GraalVM and Native Image
uses: graalvm/setup-graalvm@v1
with:
java-version: 23.0.0
distribution: graalvm-community
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: ./jbang export native -Dversion=${{ github.event.inputs.version }} p2e.java
- name: Assemble
uses: jreleaser/release-action@2.4.2
with:
version: 1.16.0
setup-java: false
arguments: assemble
env:
JRELEASER_PROJECT_VERSION: ${{ github.event.inputs.version }}
- name: Release
uses: jreleaser/release-action@2.4.2
with:
version: 1.16.0
setup-java: false
env:
JRELEASER_PROJECT_VERSION: ${{ github.event.inputs.version }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GH_PAT }}