attempt to run deploy on github

This commit is contained in:
ajgeiss0702
2022-02-22 15:31:43 -07:00
parent b02dbb5e56
commit cc5ea96c88
+25 -1
View File
@@ -25,7 +25,7 @@ jobs:
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with: with:
arguments: :free:shadowJar arguments: :free:shadowJar
- name: Upload a Build Artifact - name: Upload plugin jar artifact
uses: actions/upload-artifact@v2.3.1 uses: actions/upload-artifact@v2.3.1
with: with:
# Artifact name # Artifact name
@@ -34,3 +34,27 @@ jobs:
path: free/build/libs/ajQueue*.jar path: free/build/libs/ajQueue*.jar
# The desired behavior if no files are found using the provided path. # The desired behavior if no files are found using the provided path.
if-no-files-found: error if-no-files-found: error
- name: Upload build files artifact
uses: actions/upload-artifact@v2.3.1
with:
# Artifact name
name: build-files
# A file, directory or wildcard pattern that describes what to upload
path: '*/build/*'
# The desired behavior if no files are found using the provided path.
if-no-files-found: error
retention-days: 2
deploy:
runs-on: ubuntu-latest
environment: maven-repo-deploy
needs: build
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: build-files
- name: Deploy with Gradle
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: :api:publish :common:publish