Attempt to build and publish from workflows
This commit is contained in:
33
.github/workflows/publish.yml
vendored
Normal file
33
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- uses: jfrog/setup-jfrog-cli@v1
|
||||
with:
|
||||
version: 1.43.2
|
||||
env:
|
||||
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
|
||||
- name: Configure JFrog Cli
|
||||
run: |
|
||||
jfrog rt gradlec \
|
||||
--use-wrapper \
|
||||
--deploy-ivy-desc=false \
|
||||
--server-id-resolve=repo.spring.io \
|
||||
--server-id-deploy=repo.spring.io \
|
||||
--repo-resolve=snapshot \
|
||||
--repo-deploy=snapshot
|
||||
echo JFROG_CLI_BUILD_NAME=spring-statemachine >> $GITHUB_ENV
|
||||
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
|
||||
- name: Build and Publish
|
||||
run: |
|
||||
jfrog rt gradle clean build artifactoryPublish
|
||||
jfrog rt build-publish
|
||||
Reference in New Issue
Block a user