Skip to content

Commit

Permalink
[ci] test serving publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tosterberg committed Oct 11, 2024
1 parent 2efb035 commit 41a2ed9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 37 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/credentials_test

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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}/*"

0 comments on commit 41a2ed9

Please sign in to comment.