diff --git a/.github/workflows/build-jetpack-compose-app.yaml b/.github/workflows/build-jetpack-compose-app.yaml new file mode 100644 index 00000000..13b00dfa --- /dev/null +++ b/.github/workflows/build-jetpack-compose-app.yaml @@ -0,0 +1,12 @@ +name: Build Jetpack Compose App Distribution +on: + workflow_call: +jobs: + build-jetpack-compose-app: + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: '17' + - run: ./gradlew createDistributable packageDistributionForCurrentOS diff --git a/.github/workflows/build.yml b/.github/workflows/release.yml similarity index 63% rename from .github/workflows/build.yml rename to .github/workflows/release.yml index 84b85b67..840db43f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/release.yml @@ -21,13 +21,8 @@ jobs: build-ubuntu: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - distribution: 'corretto' - java-version: '17' - - run: ./gradlew createDistributable packageDistributionForCurrentOS - - run: pushd ./build/compose/binaries/main/app && ls -al && tar -cvzf "app.tar.gz" "Hello HTTP" && mv "app.tar.gz" "../../../../../HelloHTTP-${{ github.ref.name }}-ubuntu-${{ runner.arch }}.tar.gz" && popd + - uses: ./github/workflows/build-jetpack-compose-app.yaml + - run: pushd ./build/compose/binaries/main/app && ls -al && tar -cvzf "app.tar.gz" "Hello HTTP" && mv "app.tar.gz" "../../../../../HelloHTTP-${{ github.ref_name }}-ubuntu-${{ runner.arch }}.tar.gz" && popd - uses: softprops/action-gh-release@v1 with: - files: "HelloHTTP-${{ github.ref.name }}-ubuntu-${{ runner.arch }}.tar.gz" + files: "HelloHTTP-${{ github.ref_name }}-ubuntu-${{ runner.arch }}.tar.gz"