2023-03-14 23:41:37 +03:00
|
|
|
name: new-version
|
2023-03-16 15:33:53 +03:00
|
|
|
run-name: building ${{ inputs.projects }}
|
2023-04-09 15:26:48 +03:00
|
|
|
|
2023-03-14 23:41:37 +03:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
projects:
|
|
|
|
description: eg. `foo.com=1.2.3 bar.com^2.3.4`
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
platform:
|
2023-06-20 01:01:17 +03:00
|
|
|
- darwin+x86-64
|
|
|
|
- linux+x86-64
|
|
|
|
- darwin+aarch64
|
|
|
|
- linux+aarch64
|
2023-03-14 23:41:37 +03:00
|
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
with:
|
|
|
|
projects: ${{ inputs.projects }}
|
|
|
|
platform: ${{ matrix.platform }}
|
|
|
|
secrets: inherit
|
|
|
|
|
2023-04-09 15:26:48 +03:00
|
|
|
bottle:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
platform:
|
2023-06-20 01:01:17 +03:00
|
|
|
- darwin+x86-64
|
|
|
|
- linux+x86-64
|
|
|
|
- darwin+aarch64
|
|
|
|
- linux+aarch64
|
2023-03-14 23:41:37 +03:00
|
|
|
needs: [build]
|
2023-04-09 15:26:48 +03:00
|
|
|
uses: ./.github/workflows/bottle.yml
|
2023-03-14 23:41:37 +03:00
|
|
|
with:
|
2023-04-09 15:26:48 +03:00
|
|
|
new-version: true
|
|
|
|
platform: ${{ matrix.platform }}
|
2023-04-22 00:19:52 +03:00
|
|
|
projects: ${{ inputs.projects }}
|
2023-03-14 23:41:37 +03:00
|
|
|
secrets: inherit
|
2023-04-09 15:26:48 +03:00
|
|
|
|
2023-06-04 10:08:05 +03:00
|
|
|
request-qa:
|
|
|
|
needs: [bottle]
|
|
|
|
if: ${{ needs.bottle.outputs.qa-required != '[]' }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
project: ${{ fromJson(needs.bottle.outputs.qa-required) }}
|
|
|
|
steps:
|
2023-06-20 01:01:17 +03:00
|
|
|
- uses: teaxyz/pantry/.github/actions/request-qa@main
|
2023-06-04 10:08:05 +03:00
|
|
|
with:
|
|
|
|
project: ${{ matrix.project }}
|
|
|
|
slack-webhook: ${{ secrets.SLACK_QA_WEBHOOK }}
|
|
|
|
|
2023-04-09 15:26:48 +03:00
|
|
|
complain:
|
|
|
|
needs: [build, bottle]
|
|
|
|
if: failure()
|
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-04-12 01:04:29 +03:00
|
|
|
- uses: teaxyz/pantry/.github/actions/complain@main
|
2023-04-09 15:26:48 +03:00
|
|
|
with:
|
|
|
|
projects: ${{ inputs.projects }}
|
|
|
|
platform: ${{ inputs.platform }}
|
|
|
|
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
|
|
slack-channel: ${{ secrets.SLACK_CHANNEL }}
|
|
|
|
|
|
|
|
index_data:
|
|
|
|
needs: [bottle]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: teaxyz/setup@v0
|
|
|
|
with:
|
|
|
|
srcroot: null
|
|
|
|
- uses: teaxyz/brewkit/actions/cache@v0
|
|
|
|
- run: ./.github/scripts/index-packages.ts ${{ inputs.projects }}
|
|
|
|
env:
|
|
|
|
TEA_PANTRY_PATH: ${{ github.workspace }}
|
|
|
|
AWS_REGION: us-east-1
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
SQS_GENERATE_PACKAGE_DETAILS_URL: ${{ secrets.SQS_GENERATE_PACKAGE_DETAILS_URL }}
|
2023-06-13 02:10:04 +03:00
|
|
|
SNS_NEW_PACKAGES_TOPIC: ${{ secrets.SNS_NEW_PACKAGES_TOPIC }}
|