diff --git a/.github/workflows/credentials_test b/.github/workflows/credentials_test deleted file mode 100644 index 4ac2913126..0000000000 --- a/.github/workflows/credentials_test +++ /dev/null @@ -1,26 +0,0 @@ -name: Credentials Test - -on: - pull_request: - branches: - - serving-publish - push: - branches: - - serving-publish - -permissions: - id-token: write - contents: read - -jobs: - test-aws-credentials: - runs-on: ubuntu-latest - steps: - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: arn:aws:iam::185921645874:role/github-actions-djl-serving - aws-region: us-west-2 - - name: Verify AWS Credentials - run: | - aws sts get-caller-identity diff --git a/.github/workflows/serving_publish.yml b/.github/workflows/serving-publish.yml similarity index 94% rename from .github/workflows/serving_publish.yml rename to .github/workflows/serving-publish.yml index 8aed6291a8..d499e6f499 100644 --- a/.github/workflows/serving_publish.yml +++ b/.github/workflows/serving-publish.yml @@ -1,36 +1,29 @@ name: Serving publish - on: schedule: - cron: '0 12 * * *' + push: + branches: + - serving-publish # Trigger on push events to the serving-publish branch workflow_dispatch: inputs: mode: description: 'staging/snapshot, default is snapshot' required: true default: 'snapshot' - serving-branch: - description: 'djl-serving branch, default is master' - required: true - default: 'master' repo-id: description: 'staging repository id for djl api packages' required: false default: '' - permissions: id-token: write contents: read - jobs: publish: if: github.repository == 'deepjavalibrary/djl-serving' runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.inputs.serving-branch }} - name: Set up JDK 17 uses: actions/setup-java@v4 with: @@ -88,4 +81,4 @@ jobs: ./gradlew :awscurl:jar -Pstaging DJL_VERSION=$(awk -F '=' '/djl / {gsub(/ ?"/, "", $2); print $2}' gradle/libs.versions.toml) aws s3 cp awscurl/build/awscurl s3://djl-ai/publish/awscurl/${DJL_VERSION}/ - aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/awscurl/${DJL_VERSION}/*" + aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/awscurl/${DJL_VERSION}/*" \ No newline at end of file