pantry/.github/actions/upload/action.yml

53 lines
1.3 KiB
YAML
Raw Normal View History

2023-02-24 23:50:10 +03:00
name: tea/pantry/upload
description: internal tea.xyz specific at this time
inputs:
pkgs:
description: packages to upload
2023-02-24 23:50:10 +03:00
required: true
srcs:
description: source tarballs
2023-02-24 23:50:10 +03:00
required: true
bottles:
description: bottles
2023-02-24 23:50:10 +03:00
required: true
checksums:
description: checksums
2023-02-24 23:50:10 +03:00
required: true
signatures:
description: signature files
2023-02-24 23:50:10 +03:00
required: true
AWS_S3_BUCKET:
description: AWS S3 bucket
2023-02-24 23:50:10 +03:00
required: true
AWS_ACCESS_KEY_ID:
description: AWS access key ID
2023-02-24 23:50:10 +03:00
required: true
AWS_SECRET_ACCESS_KEY:
description: AWS secret access key
2023-02-24 23:50:10 +03:00
required: true
outputs:
cf-invalidation-paths:
description: CloudFront invalidation paths
value: ${{ steps.upload.outputs.cf-invalidation-paths }}
2023-02-24 23:50:10 +03:00
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
2023-02-24 23:50:10 +03:00
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 }}