forked from linkedin/data-integration-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config CI to publish artifacts to JFrog (public)
- Loading branch information
Chris Li
committed
Jul 31, 2021
1 parent
542e55a
commit 72beea1
Showing
211 changed files
with
826 additions
and
2,808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: 'Publish Releases' | ||
description: 'Runs gradle tasks to publish versions to Artifactory and GitHub.' | ||
outputs: | ||
version: | ||
description: "The version tag this created." | ||
value: ${{ steps.get-tag.outputs.tag }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- id: get-tag | ||
run: echo "::set-output name=tag::$(./gradlew -q getVersion)" | ||
shell: bash | ||
- run: echo Got version ${{ steps.get-tag.outputs.tag }} | ||
shell: bash | ||
- run: ./gradlew build publishToMavenLocal artifactoryPublish -Partifactory.dryRun | ||
shell: bash | ||
- run: ./gradlew ciPerformRelease | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build and Run Tests | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
pull_request: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
release: | ||
types: [published, edited] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Gradle build (and test) | ||
run: ./gradlew build | ||
- name: Slack failure notification | ||
if: failure() && github.event_name == 'push' | ||
uses: kpritam/slack-job-status-action@v1 | ||
with: | ||
job-status: ${{ job.status }} | ||
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
channel: github-activities |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Release and Publish | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# Needed to get all tags | ||
fetch-depth: 0 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Release | ||
uses: ./.github/actions/release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} | ||
ARTIFACTORY_KEY: ${{ secrets.ARTIFACTORY_KEY }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.