Skip to content

Commit

Permalink
Remove JFrog publishing (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper authored Jun 27, 2023
1 parent 53b2bf2 commit ed3acb4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 64 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/manual-release.yml

This file was deleted.

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 Down Expand Up @@ -47,7 +41,6 @@ jobs:

# Ideally we delete old packages after releasing new ones but this does not work for snapshot releases
- name: Delete old e2e-utils packages
if: ${{ inputs.deploymentTarget == 'GitHub' }}
uses: actions/delete-package-versions@v3
with:
package-name: 'dev.restate.testing.e2e-utils'
Expand All @@ -57,16 +50,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
12 changes: 0 additions & 12 deletions test-utils/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ publishing {
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")
}
}
}

publications {
Expand Down

0 comments on commit ed3acb4

Please sign in to comment.