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 9869449 commit b37bec3
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 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: 'Release number'
description: 'Target release'
required: true
default: 0
type: number
prefix:
description: 'Artifact prefix'
required: true
default: "dev"
type: string
workflow_call:
inputs:
tag:
description: 'Release number'
description: 'Target release'
required: true
default: 0
type: number
prefix:
description: 'Artifact prefix'
required: true
default: "dev"
type: string

jobs:
build:
Expand All @@ -33,28 +43,28 @@ 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
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts-dev/*.jar
tag: v${{ inputs.tag }}
overwrite: false
file_glob: true
overwrite: true
file_glob: true

0 comments on commit b37bec3

Please sign in to comment.