Skip to content

added ${Name} as variable for save path (CLI only) #495

added ${Name} as variable for save path (CLI only)

added ${Name} as variable for save path (CLI only) #495

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'zulu'
- name: Install Linux dependencies
run: sudo apt-get install libplist-dev libimobiledevice-dev libirecovery-1.0-dev
if: runner.os == 'Linux'
- name: Gradle build
uses: gradle/gradle-build-action@v2
with:
arguments: build --no-daemon --scan
dependency-graph: generate-and-submit
- uses: initdc/upload-artifact@feat/artifact-per-file
with:
artifact-per-file: true
artifact-name-rule: ${{ runner.os }}${ext}
path: build/distributions/*
- name: Upload reports on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: failure-${{ runner.os }}
path: build/reports/
release:
name: Create public releases
runs-on: ubuntu-latest
needs: build
if: "startsWith(github.event.head_commit.message, 'Release')"
steps:
- name: Get artifacts
uses: actions/download-artifact@v3
- name: Get version from commit
run: echo "VERSION=$(echo ${{ github.event.commits[0].message }} | awk '{print $2}')" >> $GITHUB_ENV
- name: Release public builds
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.VERSION }}"
prerelease: false
draft: true
files: "**"