Skip to content

Commit

Permalink
add pre-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Oct 19, 2024
1 parent f51a94f commit 4a2ebd3
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Create pre-release [dev branch]

on: [ workflow_dispatch ]

jobs:
build:
runs-on: windows-2019

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'

- name: Build x86-64 mainnet
run: |
mkdir artifacts
git fetch -a
git checkout dev
mvn clean compile package -DskipTests
cp target/MyLocalTon.jar artifacts/MyLocalTon-x86-64.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
- name: Build arm64-aarch64 mainnet
run: |
mvn clean compile package -DskipTests -Darch=-aarch64
cp target/MyLocalTon.jar artifacts/MyLocalTon-arm64.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 DEV v${{ github.run_number }}
draft: true
prerelease: true

- name: Upload binaries to pre-release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/*.jar
tag: v${{ github.run_number }}
overwrite: true
file_glob: true

0 comments on commit 4a2ebd3

Please sign in to comment.