Skip to content

Commit

Permalink
build: native image workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
armed committed May 8, 2024
1 parent 6a4ec10 commit 8e39284
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/release_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Release Binary
on:
push:
tags:
- 'v*'
- 'com.kepler16/kmono@*'
branches:
- master
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -33,11 +35,6 @@ jobs:
- name: Fetch Tags
run: git fetch --tags origin

- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 21

- uses: extractions/setup-just@v1
- uses: DeLaGuardo/[email protected]
with:
Expand All @@ -60,6 +57,9 @@ jobs:
"username": "${{ github.actor }}",
"password": "${{ secrets.GITHUB_TOKEN }}"}]
- name: Build Uber for Native Image
run: just build-uber ":snapshot?" false

- name: Build Native Image
run: just build-native ":snapshot?" false

Expand All @@ -76,7 +76,7 @@ jobs:
release:
runs-on: ubuntu-latest
needs: [build]
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'com.kepler16/kmono@') }}
steps:
- uses: actions/checkout@v3

Expand All @@ -94,11 +94,6 @@ jobs:
mv checksums.txt bin/checksums.txt
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 21

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 8e39284

Please sign in to comment.