Skip to content

Commit

Permalink
add artifacts from dev branch to the latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Oct 22, 2024
1 parent a861000 commit 8ecca3b
Showing 1 changed file with 26 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
name: Create pre-release

on: [ workflow_dispatch ]
name: Add to release

on:
workflow_dispatch:
inputs:
tag:
description: 'Release number'
required: true
default: 0
type: number
workflow_call:
inputs:
tag:
description: 'Release number'
required: true
default: 0
type: number

jobs:
build:
Expand All @@ -16,43 +30,31 @@ jobs:

- name: Build x86-64 mainnet
run: |
mkdir artifacts
mkdir artifacts-dev
git fetch -a
mvn clean compile package -DskipTests
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64.jar
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-x86-64-dev.jar
- name: Build x86-64 testnet
run: |
mvn clean compile package -DskipTests -Dton_branch=testnet
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64-testnet.jar
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-x86-64-testnet-dev.jar
- name: Build arm64-aarch64 mainnet
run: |
mvn clean compile package -DskipTests -Darch=-aarch64
cp target/MyLocalTon.jar artifacts/MyLocalTon-arm64.jar
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-arm64-dev.jar
- name: Build arm64-aarch64 testnet
run: |
mvn clean compile package -DskipTests -Dton_branch=testnet -Darch=-aarch64
cp target/MyLocalTon.jar artifacts/MyLocalTon-arm64-testnet.jar
- name: Create pre-release
id: create_pre_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: MyLocalTon v${{ github.run_number }}
draft: false
prerelease: true
cp target/MyLocalTon.jar artifacts-dev/MyLocalTon-arm64-testnet-dev.jar
- name: Upload binaries to pre-release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/*.jar
tag: v${{ github.run_number }}
overwrite: true
file: artifacts-dev/*.jar
tag: v${{ inputs.tag }}
overwrite: false
file_glob: true
prerelease: true

0 comments on commit 8ecca3b

Please sign in to comment.