Skip to content

Commit

Permalink
Re-enable aws related options
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanl-bq committed Jun 17, 2024
1 parent 4754cef commit 0462c9f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/gradle-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ jobs:
run: |
echo "::set-output name=matrix::${{toJson( env.MATRIX )}}"
#start-self-hosted-runner:
#if: github.repository_owner == 'aws'
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Start self hosted EC2 runner
# uses: ./.github/workflows/start-self-hosted-runner
# with:
# role-to-assume: ${{ secrets.ROLE_TO_ASSUME }}
# aws-region: ${{ secrets.AWS_REGION }}
# ec2-instance-id: ${{ secrets.AWS_EC2_INSTANCE_ID }}
start-self-hosted-runner:
if: github.repository_owner == 'aws'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Start self hosted EC2 runner
uses: ./.github/workflows/start-self-hosted-runner
with:
role-to-assume: ${{ secrets.ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}
ec2-instance-id: ${{ secrets.AWS_EC2_INSTANCE_ID }}

publish-binaries:
needs: [output-matrix] #[start-self-hosted-runner, output-matrix]
#if: github.repository_owner == 'aws'
needs: [start-self-hosted-runner, output-matrix]
if: github.repository_owner == 'aws'
name: Publish packages to Maven Central
runs-on: ${{ matrix.build.RUNNER }}
container:
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.build.TARGET }}
path: ./java/client/build/libs/glide-placeholder.jar
path: ./java/client/build/libs/glide-${{ matrix.build.CLASSIFIER }}.jar
if-no-files-found: error

# Reset the repository to make sure we get the clean checkout of the action later in other actions.
Expand Down

0 comments on commit 0462c9f

Please sign in to comment.