Skip to content

Commit

Permalink
Remove JFrog (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper authored Jun 27, 2023
1 parent 765edb0 commit 73cee7c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 57 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
13 changes: 0 additions & 13 deletions .github/workflows/push-tag-release.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand All @@ -37,16 +30,7 @@ jobs:
ignore-versions: '^.*(?<!SNAPSHOT)$'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build with Gradle & publish to JFrog repository
if: ${{ inputs.deploymentTarget == 'JFrog' }}
uses: gradle/gradle-build-action@v2
env:
JFROG_USERNAME: ${{ secrets.JFROG_USERNAME }}
JFROG_TOKEN: ${{secrets.JFROG_TOKEN }}
with:
arguments: publishMavenPublicationToJFrogRepository
- name: Build with Gradle & publish to GitHub packages repository
if: ${{ inputs.deploymentTarget == 'GitHub' }}
uses: gradle/gradle-build-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 0 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,6 @@ subprojects {
password = System.getenv("GITHUB_TOKEN")
}
}

maven {
name = "JFrog"
val releasesRepoUrl = uri("https://restatedev.jfrog.io/artifactory/restatedev-libs-release")
val snapshotsRepoUrl =
uri("https://restatedev.jfrog.io/artifactory/restatedev-libs-snapshot")
url =
uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)

credentials {
username = System.getenv("JFROG_USERNAME")
password = System.getenv("JFROG_TOKEN")
}
}
}
}
}

0 comments on commit 73cee7c

Please sign in to comment.