publish #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
workflow_dispatch: | |
inputs: | |
resource_id: | |
description: "Bioimageio ID of the resource - to be used to access the resource on S3" | |
required: true | |
type: string | |
stage_number: | |
description: stage number to publish | |
required: true | |
type: number | |
concurrency: ${{inputs.resource_id}} | |
env: | |
S3_HOST: '${{vars.S3_HOST}}' | |
S3_BUCKET: '${{vars.S3_BUCKET}}' | |
S3_FOLDER: '${{vars.S3_FOLDER}}' | |
S3_ACCESS_KEY_ID: '${{secrets.S3_ACCESS_KEY_ID}}' | |
S3_SECRET_ACCESS_KEY: '${{secrets.S3_SECRET_ACCESS_KEY}}' | |
ZENODO_URL: '${{vars.ZENODO_URL}}' | |
ZENODO_API_ACCESS_TOKEN: '${{secrets.ZENODO_API_ACCESS_TOKEN}}' | |
jobs: | |
call: | |
uses: ./.github/workflows/publish_call.yaml | |
with: | |
resource_id: '${{inputs.resource_id}}' | |
stage_number: '${{inputs.stage_number}}' | |
S3_HOST: '${{vars.S3_HOST}}' | |
S3_BUCKET: '${{vars.S3_BUCKET}}' | |
S3_FOLDER: '${{vars.S3_FOLDER}}' | |
ZENODO_URL: '${{vars.ZENODO_URL}}' | |
secrets: inherit |