Skip to content

Commit

Permalink
Adds an artifact per build
Browse files Browse the repository at this point in the history
Signed-off-by: Clay Downs <downsrob@amazon.com>
  • Loading branch information
downsrob committed Dec 3, 2021
1 parent 68958f3 commit 458518d
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: index-management-plugin
name: index-management-plugin-ubuntu
path: index-management-artifacts
windows-build:
# Job name
Expand All @@ -68,19 +68,21 @@ jobs:
run: ./gradlew.bat build -D"opensearch.version=1.2.0-SNAPSHOT" -x integTest -x jacocoTestReport
env:
_JAVA_OPTIONS: -Xmx4096M
# - name: Upload failed logs
# uses: actions/upload-artifact@v2
# if: failure()
# with:
# name: logs
# path: build/testclusters/integTest-*/logs/*
- name: Create Artifact Path
run: |
mkdir -p index-management-artifacts
cp ./build/distributions/*.zip index-management-artifacts
- name: Uploads coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
# This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: index-management-plugin
name: index-management-plugin-windows
path: index-management-artifacts
mac-build:
# Job name
Expand All @@ -98,17 +100,19 @@ jobs:
uses: actions/checkout@v2
- name: Build with Gradle
run: ./gradlew build -Dopensearch.version=1.2.0-SNAPSHOT -x integTest -x jacocoTestReport
# - name: Upload failed logs
# uses: actions/upload-artifact@v2
# if: failure()
# with:
# name: logs
# path: build/testclusters/integTest-*/logs/*
- name: Create Artifact Path
run: |
mkdir -p index-management-artifacts
cp ./build/distributions/*.zip index-management-artifacts
- name: Uploads coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
# This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: index-management-plugin
name: index-management-plugin-mac
path: index-management-artifacts

0 comments on commit 458518d

Please sign in to comment.