From c29936b95b240eaeb0ef01fc56d35f985b8c593f Mon Sep 17 00:00:00 2001 From: guihvicentini Date: Mon, 11 Dec 2023 23:28:56 +0100 Subject: [PATCH] fix: artifacts path --- .github/workflows/build-native.yml | 29 ---------------------- .github/workflows/main-workflow.yaml | 37 ++++------------------------ dupliwise/settings.gradle.kts | 1 - settings.gradle.kts | 2 +- 4 files changed, 6 insertions(+), 63 deletions(-) delete mode 100644 .github/workflows/build-native.yml delete mode 100644 dupliwise/settings.gradle.kts diff --git a/.github/workflows/build-native.yml b/.github/workflows/build-native.yml deleted file mode 100644 index ed0b520..0000000 --- a/.github/workflows/build-native.yml +++ /dev/null @@ -1,29 +0,0 @@ -#name: GraalVM Native Builds -#on: [push, pull_request] -#jobs: -# build: -# name: cli-utils on ${{ matrix.os }} -# runs-on: ${{ matrix.os }} -# strategy: -# matrix: -# os: [macos-latest, windows-latest, ubuntu-latest] -# steps: -# - uses: actions/checkout@v4 -# - uses: graalvm/setup-graalvm@v1 -# with: -# java-version: '17' -# distribution: 'graalvm' -# github-token: ${{ secrets.GITHUB_TOKEN }} -# native-image-job-reports: 'true' -# -# - name: Build with Gradle -# uses: gradle/gradle-build-action@v2 -# with: -# arguments: nativeCompile -# -# - name: Upload binary -# uses: actions/upload-artifact@v3 -# with: -# name: cli-utils-${{ matrix.os }} -# path: ${{ github.workspace }}/**/build/native/nativeCompile/* -# if-no-files-found: error diff --git a/.github/workflows/main-workflow.yaml b/.github/workflows/main-workflow.yaml index 56eaa8f..6d8fc65 100644 --- a/.github/workflows/main-workflow.yaml +++ b/.github/workflows/main-workflow.yaml @@ -47,43 +47,16 @@ jobs: - uses: actions/download-artifact@v3 with: - path: cli-utils/bin + path: bin - name: Display structure of downloaded files - run: ls -al - working-directory: cli-utils/bin/cli-utils-ubuntu-latest + run: ls -alR + working-directory: bin/cli-utils-ubuntu-latest - name: Publish Release uses: ncipollo/release-action@v1 with: - artifacts: "cli-utils/bin/cli-utils-*/*" + artifacts: "bin/cli-utils-*/**/build/native/nativeCompile/*" tag: ${{ steps.tag_version.outputs.new_tag }} name: Release ${{ steps.tag_version.outputs.new_tag }} - body: ${{ steps.tag_version.outputs.changelog }} - -# - name: Bump version and push tag -# uses: anothrNick/github-tag-action@1.64.0 # Don't use @master or @v1 unless you're happy to test the latest version -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token -# WITH_V: true -# DEFAULT_BUMP: patch - -# publish: -# needs: [tag] -# name: publish release -# runs-on: ubuntu-latest -# permissions: -# contents: write -# steps: -# - name: Checkout -# uses: actions/checkout@v3 -# -# - -# - name: Publish release -# uses: ghalactic/github-release-from-tag@v5 -# with: -# generateReleaseNotes: "true" -# assets: | -# - path: cli-utils/bin/* -# optional: true \ No newline at end of file + body: ${{ steps.tag_version.outputs.changelog }} \ No newline at end of file diff --git a/dupliwise/settings.gradle.kts b/dupliwise/settings.gradle.kts deleted file mode 100644 index 29280ea..0000000 --- a/dupliwise/settings.gradle.kts +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = "dupliwise" diff --git a/settings.gradle.kts b/settings.gradle.kts index 03efc26..3cd0e39 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,2 +1,2 @@ rootProject.name = "cli-utils" -include("dupliwise") +include("dupliwise") \ No newline at end of file