From ab93762590fc4007dc651d58cff88a5950ed5073 Mon Sep 17 00:00:00 2001 From: slinkydeveloper Date: Tue, 27 Jun 2023 12:18:09 +0200 Subject: [PATCH] Remove JFrog --- .github/workflows/manual-release.yml | 11 ----------- ...{push-branch-release.yml => push-release.yml} | 8 +++++--- .github/workflows/push-tag-release.yml | 13 ------------- .github/workflows/release.yml | 16 ---------------- build.gradle.kts | 14 -------------- 5 files changed, 5 insertions(+), 57 deletions(-) rename .github/workflows/{push-branch-release.yml => push-release.yml} (64%) delete mode 100644 .github/workflows/push-tag-release.yml diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml index c4828919..2820da9d 100644 --- a/.github/workflows/manual-release.yml +++ b/.github/workflows/manual-release.yml @@ -2,19 +2,8 @@ name: Trigger publish manually on: workflow_dispatch: - inputs: - deploymentTarget: - description: 'Deployment target' - required: true - default: 'GitHub' - type: choice - options: - - GitHub - - JFrog jobs: publish: uses: ./.github/workflows/release.yml - with: - deploymentTarget: ${{ inputs.deploymentTarget }} secrets: inherit diff --git a/.github/workflows/push-branch-release.yml b/.github/workflows/push-release.yml similarity index 64% rename from .github/workflows/push-branch-release.yml rename to .github/workflows/push-release.yml index b2114909..d0fb01fa 100644 --- a/.github/workflows/push-branch-release.yml +++ b/.github/workflows/push-release.yml @@ -1,13 +1,15 @@ -name: Trigger publish on push main +name: Trigger release on: + workflow_dispatch: push: branches: - main + tags: + - v** + jobs: publish-to-github-packages: uses: ./.github/workflows/release.yml - with: - deploymentTarget: GitHub secrets: inherit diff --git a/.github/workflows/push-tag-release.yml b/.github/workflows/push-tag-release.yml deleted file mode 100644 index c6c140ec..00000000 --- a/.github/workflows/push-tag-release.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Trigger publish on push tag - -on: - push: - tags: - - v** - -jobs: - publish-to-jfrog: - uses: ./.github/workflows/release.yml - with: - deploymentTarget: JFrog - secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78fcf20c..00c0cf1e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,12 +2,6 @@ name: Publish release on: workflow_call: - inputs: - deploymentTarget: - description: 'Deployment target (JFrog or GitHub)' - required: true - default: 'GitHub' - type: string jobs: publish: @@ -27,7 +21,6 @@ jobs: # Ideally we delete old packages after releasing new ones but this does not work for snapshot releases - name: Delete old java-sdk packages - if: ${{ inputs.deploymentTarget == 'GitHub' }} uses: actions/delete-package-versions@v3 with: package-name: 'dev.restate.sdk.java-sdk' @@ -37,16 +30,7 @@ jobs: ignore-versions: '^.*(?