Skip to content

Commit

Permalink
Initial checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
satran004 committed Nov 11, 2024
1 parent 4ea7c0c commit c6e681e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Release

on:
push:
tags:
- '*'

jobs:
buildAndPush:
strategy:
matrix:
os: [ "ubuntu-20.04", "macos-14" ]
runs-on: ${{ matrix.os }}
steps:
- name: Get Tag Name
id: get_tag
shell: bash
run: |
echo "tag=${GITHUB_REF##*/}" >> "$GITHUB_OUTPUT"
- name: Checkout yaci-store
uses: actions/checkout@v3
with:
repository: bloxbean/yaci-store
ref: ${{ steps.get_tag.outputs.tag }}

- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
version: '21.0.4'
native-image-job-reports: 'true'

- name: Build with Gradle
run: ./gradlew clean cliZip

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./applications/app/build/output/yaci-store-*.zip
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c6e681e

Please sign in to comment.