pantry/.github/actions/upload/action.yml
Jacob Heider 1c809689b4
Fix bottle.yml (#403)
* fix(bottle.yml)

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* use @main action definition
2023-02-25 03:05:09 -05:00

53 lines
1.3 KiB
YAML

name: tea/pantry/upload
description: internal tea.xyz specific at this time
inputs:
pkgs:
description: packages to upload
required: true
srcs:
description: source tarballs
required: true
bottles:
description: bottles
required: true
checksums:
description: checksums
required: true
signatures:
description: signature files
required: true
AWS_S3_BUCKET:
description: AWS S3 bucket
required: true
AWS_ACCESS_KEY_ID:
description: AWS access key ID
required: true
AWS_SECRET_ACCESS_KEY:
description: AWS secret access key
required: true
outputs:
cf-invalidation-paths:
description: CloudFront invalidation paths
value: ${{ steps.upload.outputs.cf-invalidation-paths }}
runs:
using: composite
steps:
- uses: teaxyz/pantry.core/.github/actions/cache@main
with:
cache-name: upload
- run: ${{ github.action_path }}/upload.ts
--pkgs ${{ inputs.pkgs }}
--srcs ${{ inputs.srcs }}
--bottles ${{ inputs.bottles }}
--checksums ${{ inputs.checksums }}
--signatures ${{ inputs.signatures }}
shell: sh
id: upload
env:
AWS_S3_BUCKET: ${{ inputs.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }}