pantry/.github/workflows/cd.yml
Jacob Heider 11c863706e
use PR build artifacts on merge (#78)
* Uploads artifacts to S3, bottles on a different workflow

* rip slack notifications

* be more explicit about AWS_S3_CACHE

* Revert "fix build-deps outputting stuff we need to build"

This reverts commit 972f0715f4.

Co-authored-by: Max Howell <mxcl@me.com>
2022-12-20 16:54:26 -05:00

22 lines
682 B
YAML

name: cd
on:
push:
branches:
- main
jobs:
cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: >
grep -E ' github: [^\w]+/[^\w/]+' projects/**/package.yml |
sed -e 's|^projects/\(.*\)/package.yml: *github: \([^/]*/[^/]*\).*|{ "project": "\1", "github": "\2" }|' |
jq -sc . |
curl https://app.tea.xyz/api/receiveWatcherProjects --fail -X PUT \
-H "content-type: application/json" -H "authorization: bearer ${{ secrets.TEA_API_TOKEN }}" -d @-
bottle:
#FIXME: will fail (harmlessly) on non-merge/non-new-version runs
uses: ./.github/workflows/bottle.yml
secrets: inherit