mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
73 lines
1.8 KiB
YAML
73 lines
1.8 KiB
YAML
name: new-version
|
|
run-name: building ${{ inputs.projects }}
|
|
|
|
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:
|
|
- darwin+x86-64
|
|
- linux+x86-64
|
|
- darwin+aarch64
|
|
- linux+aarch64
|
|
uses: ./.github/workflows/build.yml
|
|
with:
|
|
projects: ${{ inputs.projects }}
|
|
platform: ${{ matrix.platform }}
|
|
secrets: inherit
|
|
|
|
bottle:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- darwin+x86-64
|
|
- linux+x86-64
|
|
- darwin+aarch64
|
|
- linux+aarch64
|
|
needs: [build]
|
|
uses: ./.github/workflows/bottle.yml
|
|
with:
|
|
new-version: true
|
|
platform: ${{ matrix.platform }}
|
|
secrets: inherit
|
|
|
|
complain:
|
|
needs: [build, bottle]
|
|
if: failure()
|
|
permissions:
|
|
issues: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: teaxyz/pantry/.github/actions/complain@main
|
|
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 }}
|