Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove JFrog #98

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
}
}
}
}
}