Skip to content

Bump junit.version from 5.11.1 to 5.11.2 #992

Bump junit.version from 5.11.1 to 5.11.2

Bump junit.version from 5.11.1 to 5.11.2 #992

name: Build and Release
on:
- push
- pull_request
jobs:
build:
name: Build ApkToolBoxGUI
strategy:
fail-fast: false
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: |
mvn clean package
- name: Package in Windows
run: |
./PackageWindows.ps1
if: runner.os == 'Windows'
- name: Package in Linux
run: |
chmod u+x ./PackageLinux.sh
./PackageLinux.sh
if: runner.os == 'Linux'
- name: Package in macOS
run: |
chmod u+x ./PackageMacos.sh
./PackageMacos.sh
if: runner.os == 'macOS'
- uses: actions/upload-artifact@v4
with:
name: ApkToolBoxGUI-${{ runner.os }}
path: target/ApkToolBoxGUI-*-with*-JRE-*.zip
- name: Upload Release Asset
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
target/ApkToolBoxGUI-*-with*-JRE-*.zip
tag_name: ${{ github.refname }}
draft: true
prerelease: false
body: |
BEFORE PUBLISHING CHECKLIST:
1. Update the version in pom.xml and push the change to github.
2. Add a new tag according with the version in pom.xml and push the tag to github.
3. Check whether there are failed github actions and whether the gh-page is updated successfully.
4. Fill in the changelog below.
5. Download the release zips and test that the binaries works.
--- PUBLISH GITHUB RELEASE HERE ---
--- DELETE EVERYTHING ABOVE THIS LINE ---
This is a binary release of ApkToolBoxGUI for Linux/MacOS/Windows. To use it follow these [instructions](https://jiangxincode.github.io/ApkToolBoxGUI/).
- new feature 1
- new feature 2
```