Skip to content

Commit

Permalink
add prefix to artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Oct 23, 2024
1 parent 521bae3 commit d6b868a
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/add-to-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,27 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'Specify target release'
description: 'Target release'
required: true
default: 0
type: number
prefix:
description: 'Artifact prefix'
required: true
default: "dev"
type: string
workflow_call:
inputs:
tag:
description: 'Specify target release'
description: 'Target release'
required: true
default: 0
type: number
prefix:
description: 'Artifact prefix'
required: true
default: "dev"
type: string

jobs:
build:
Expand All @@ -33,22 +43,22 @@ jobs:
mkdir artifacts-dev
git fetch -a
mvn clean compile package -DskipTests
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-x86-64-dev.jar
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-x86-64-${{ prefix.tag }}.jar
- name: Build x86-64 testnet
run: |
mvn clean compile package -DskipTests -Dton_branch=testnet
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-x86-64-testnet-dev.jar
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-x86-64-testnet-${{ prefix.tag }}.jar
- name: Build arm64-aarch64 mainnet
run: |
mvn clean compile package -DskipTests -Darch=-aarch64
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-arm64-dev.jar
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-arm64-${{ prefix.tag }}.jar
- name: Build arm64-aarch64 testnet
run: |
mvn clean compile package -DskipTests -Dton_branch=testnet -Darch=-aarch64
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-arm64-testnet-dev.jar
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-arm64-testnet-${{ prefix.tag }}.jar
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit d6b868a

Please sign in to comment.